Well, I'm not sure what the original reason was, but I can suggest several:
1. its simpler, just get the text content without any markup and create one text element, otherwise 2. there is more complexity in the copying of arbitrary structuring which would be needed, and 3. printed TOCs often do not use the original formatting since chapter and section titles are often far larger than is convenient in TOCs, so some mapping would be needed from actual chapter formatting to TOC formatting, and finally 4. that mapping is complicated by the fact that the JS only sees the HTML which has lost the semantics of the formatting despite the fact that Asciidoc tries to keep as much as possible. No stringing up needed, just a request for a proven, reliable, pull request with a new JS that works in all browsers, allows mappings of formatting to be configured (maybe with CSS) and can be turned on only with an attribute. Maybe stringing up is preferable :) Cheers Lex On 25 September 2015 at 21:34, Ken McGlothlen <[email protected]> wrote: > I'm not sure what the rationale was for stripping all the formatting when > building TOCs, but I think it looks better this way. I have a patch to > asciidoc.js if anyone's interested. Or I'm willing to hear you out on why > putting formatting there is a stupid idea and how I should be strung up for > the very idea. :) > > —Ken > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
