asciidoctor / asciidoctor-backends

Backends (i.e., templates) for Asciidoctor, a Ruby port of AsciiDoc.
http://asciidoctor.org
Other
65 stars 73 forks source link

Only treat level-1 headings as sections in deck.js backend #117

Open mojavelinux opened 9 years ago

mojavelinux commented 9 years ago

In the deck.js backend, all section headings are converted to <section> HTML elements. Only level-1 headings (two equal signs) should be converted to <section> HTML elements. The rest should be converted to regular section headings because they are most likely content.

The workaround currently is to add the [discrete] block style to the heading.

wimalopaan commented 9 years ago

Well, then you miss the numbering for normal html backend ...

mojavelinux commented 9 years ago

Yes, the workaround is less than ideal. Though, you could do something like:

ifdef::deckjs[[discrete]]

Then pass the -a deckjs flag. Again, not ideal, but workable.