Bard Text Modifier#
Converts any Bard data to a plain text 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: paragraphcontent:-type: texttext: "We're going to build a simple personal website for a fictitious young aspiring programmer named Kurt Logan."-type: setattrs:values:type: code_blockcode: '<?php Statamic::rocks() ?>'-type: paragraphcontent:-type: texttext: "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."yamlyaml
{{ main_content | raw | bard_text }}{{ main_content | raw | bard_text | read_time }}antlersantlers
We're going to build a simple personal website for a fictitious young aspiring programmer named Kurt Logan. 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.antlersantlers
1antlersantlers
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page