Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

bard_html Modifier

Converts any Bard data to an HTML string (excluding sets). Bard data can be either:

  • The raw value from a Bard field (a ProseMirror document), with or without sets
  • One or more ProseMirror nodes (from the bard_items modifier)
main_content:
-
type: paragraph
content:
-
type: text
text: "We're going to build a simple personal website for a fictitious young aspiring programmer named Kurt Logan."
-
type: set
attrs:
values:
type: code_block
code: '<?php Statamic::rocks() ?>'
-
type: paragraph
content:
-
type: text
text: "Kurt always has and always will live in the 1980s and is very excited at the prospect of having his very own place in\_CYBERSPACE."
{{ main_content | raw | bard_html }}
{{ Statamic::modify($main_content)->bardHtml() }}
<p>We&#039;re going to build a simple personal website for a fictitious young aspiring programmer named Kurt Logan.</p><p>Kurt always has and always will live in the 1980s and is very excited at the prospect of having his very own place in CYBERSPACE.</p>
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →