owenh000 / asciidoctor-multipage

A configurable multipage HTML converter for Asciidoctor
https://owenh.net/asciidoctor-multipage
MIT License
58 stars 23 forks source link

Sections not supported in block-level table cells with "a" operator #18

Open owenh000 opened 3 years ago

owenh000 commented 3 years ago

Unfortunately it is possible to put a section header inside a table cell with the "a" operator. The asciidoctor-multipage extension may not handle these sections as expected.

I hope section headers are seldom, if ever, being used inside table cells. Thus, fixing this issue is ultra-low priority. If however you want to see this fixed then this is the issue for you to comment on and/or work on.

tajmone commented 2 years ago

I hope section headers are seldom, if ever, being used inside table cells.

Indeed, and even if they are they'll most likely be discrete headings.

The asciidoctor-multipage extension may not handle these sections as expected.

Any chance that the discrete attribute could be checked to skip such headings and prevent breakage? (this should apply to any block, since discrete headings are allows in any block, usually to mimic the style of section headings).

Thus, fixing this issue is ultra-low priority.

Definitely not urgent, but still worth sharing thoughts on this, for the solution might be simple (as proposed above).

owenh000 commented 2 years ago

@tajmone, good idea; thanks for reminder about discrete headings.