Re: Second level before the first level headline?
Roger Gammans <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2014-05-20 at 14:40 +0200, Peter Funk wrote: > Matěj Cepl wrote 17.05.2014 at 13:35: > ... > > Is there way how to persuade pandoc (or other rST tools) that what I > > want to be the level 2 heading (marked by single dashes underlining) is > > really that, and that level 1 heading is marked by by both underlining > > and overlining? > > Hmmm.... The internal model of docutils uses a tree to represent the > hierarchical structure. So I assume David thought that orphaned > level-2 sections without a level-1 parent are normally not needed > at all. I would simply put an artificial Part 0 header into the > text to solve this issue. For example this one should work:: And IIRC, internally I don't think a section needs a title. It only needs one to introduce it to the parser. There are a number of transforms available which manipulate the titles independently the sections. [See --section-subtitles , --no-doc-title]. I don't think there is a transform in the default tooling that does what the OP needs but you could write your own if you are happy to have custom python in you tool-chain. -- Roger Gammans <[email protected]> ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs