Repository navigation
This release changes the blocks that the HTML readers emit, and duck_blocks_to_html now prints a footnote body once.
Output changes in read_html_blocks, parse_html_blocks and html_to_duck_blocks
- Text collapses each whitespace run to one space, as a browser renders it. Source indentation
such as"\n "used to pass through, and a markdown writer then read it as a code
block.<pre>and<textarea>keep their whitespace. - A table cell is one line of text.
<br>and a block child, such as a list, become one space,
and the cell edges are trimmed.x<br>yused to read asxy, and source newlines and
indentation stayed in the cell. <meta name>values for the browser or a crawler are no longer document metadata:
viewport,theme-color,color-scheme,format-detection,referrer,
robotsandgenerator. A markdown writer used to put them in the front matter.- A heading with no
idgets a slug id of its text, by pandoc'sauto_identifiersrule, as
every duck_blocks reader does:<h2>Field guide</h2>givesattributes['id'] = 'field-guide',
and<h2>Café</h2>givescafé(#275, duckdb_markdown#111).idwas absent.
duck_blocks_to_htmltherefore writes<h2 id="field-guide">after a round trip. capture_attributes := 'classes'also copiesroleandlang(#275). A sourcerole
was dropped on every element, even under'*'. It now passes on every element except those
whose block the vocabulary gives a role (section,list_item,caption). The default
capture is unchanged.- Table blocks keep their columns aligned when a cell spans (#274).
<td colspan="2">x</td><td>y</td>
under three headers gave["x","y"], soysat under the second header. It now gives
["x","","y"].rowspanfills the rows below the same way. - Table blocks carry the
<caption>text inattributes['caption'](#274). It was dropped.
A table nested in the caption is left out of that text. - Spans read as HTML reads them:
rowspan="0"spans the rest of its row group, and a leading
+is allowed (colspan="+2"). Spans are bounded per table, so a small page cannot
expand into a huge one.
Output change in duck_blocks_to_html
- A footnote body prints once, inside its
notespan (#272). Adivblock with
attributes['source_type'] = 'footnote'whoseidmatches an inlinenoteis skipped,
with its children. That div used to print the body a second time. Citation bodies, and footnote
bodies that no note references, still print. This is the shape panduck emits for RST footnotes.