BeaconCMS / beacon

Open-source content management system (CMS) built with Phoenix LiveView. Faster render times to boost SEO performance, even for the most content-heavy pages.
https://beaconcms.org
MIT License
1.04k stars 101 forks source link

`JSONEncoder` is incorrectly merging subsequent comments #600

Open leandrocp opened 1 month ago

leandrocp commented 1 month ago

The following template

~S|<!-- comment 1 --><!-- comment 2 -->|

Is being encoded as:

[%{"attrs" => %{}, "content" => [" comment 1  comment 2 "], "tag" => "html_comment"}]

It should generate two elements instead of merging into a single comment element.