You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have noticed that when writing lists in bard field - and if splitting list items with paragraphs in between, both in cms and the associated .md file, the list numbering is retained correctly. However this is not reflected when trying to output this text in antlers template. Have tried many modifiers but seems like the output of the renderProsemirrorToHtml method in Bard/Augmentor.php is stripping the marks out.
content in .md file
bard:
-
type: heading
attrs:
level: 2
content:
-
type: text
text: test
-
type: orderedList
attrs:
start: 1
content:
-
type: listItem
content:
-
type: paragraph
content:
-
type: text
text: 'Lorem ipsum dolor sit amet, consectetur'
-
type: paragraph
content:
-
type: text
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
-
type: orderedList
attrs:
start: 2
content:
-
type: listItem
content:
-
type: paragraph
content:
-
type: text
text: 'Lorem ipsum dolor sit amet, consectetur'
-
type: paragraph
content:
-
type: text
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
-
type: orderedList
attrs:
start: 3
content:
-
type: listItem
content:
-
type: paragraph
content:
-
type: text
text: 'Lorem ipsum dolor sit amet, consectetur' ....
html as is output in the frontend - from {{bard|dump}} You can see no marks applied from orderedList to <ol> tags
"type" => "text"
"text" =>
Statamic\Fields
Value {#14880
#raw: "
<h2 id="test">test</h2><ol><li><p>Lorem ipsum dolor sit amet, consectetur</p></li></ol><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><ol><li><p>Lorem ipsum dolor sit amet, consectetur</p></li></ol><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><ol><li><p>Lorem ipsum dolor sit amet, consectetur</p></li><li><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p></li><li><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p></li></ol>"
Bug description
Have noticed that when writing lists in bard field - and if splitting list items with paragraphs in between, both in cms and the associated .md file, the list numbering is retained correctly. However this is not reflected when trying to output this text in antlers template. Have tried many modifiers but seems like the output of the
renderProsemirrorToHtml
method in Bard/Augmentor.php is stripping the marks out.content in .md file
html as is output in the frontend - from
{{bard|dump}}
You can see no marks applied from orderedList to<ol>
tagsPossibly related to an older issue - #454
How to reproduce
Create blueprint with bard field, enter text with a list broken up with paragraphs.
This can include sets
Output in template via following in template file
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
Runtime (default)
Additional details
No response
The text was updated successfully, but these errors were encountered: