When a <disp-quote content-type="editor-comment"> XML tag is parsed, it produces an excerpt block in the JSON format of the article. Though a <disp-quote> tag with no attribute produces a quote block.
This library was only allowing p tag content to be included. quote block only allows paragraph, according to the JSON schema, but excerpt allows more block types: code, list, mathml, paragraph, and table.
The code fix here supports those additional types of blocks when parsing a <disp-quote> tag into JSON content blocks.
Re issue https://github.com/elifesciences/issues/issues/7700
When a
<disp-quote content-type="editor-comment">
XML tag is parsed, it produces anexcerpt
block in the JSON format of the article. Though a<disp-quote>
tag with no attribute produces aquote
block.This library was only allowing
p
tag content to be included.quote
block only allowsparagraph
, according to the JSON schema, butexcerpt
allows more block types:code
,list
,mathml
,paragraph
, andtable
.The code fix here supports those additional types of blocks when parsing a
<disp-quote>
tag into JSON content blocks.