msmid / markdown2docbook

Conversion tool for transforming markdown text files to DocBook/HTML documents. Project is based on XSLT 2.0 technology.
MIT License
21 stars 6 forks source link

Templates on html parsed from markdown #39

Closed msmid closed 9 years ago

msmid commented 10 years ago

There are fortunately limited range of elements.

So all in all, 10 template rules plus some more like identity template.

msmid commented 9 years ago

List of docbook counterparts

msmid commented 9 years ago

Headers could easily determine how deep I am in document structer

For example:

# Header 1

text

## Header 2

moar text

could tranform into

<sect1>
    <title>header 1</title>
    <para>text</para>
    <sect2>
        <title>header 2</title>
        <para>moar text</para>
     </sect2>
</sect1>