← Back to team overview

zim-wiki team mailing list archive

Parse tree and metadata

 

When I convert (dump) the parse tree of a page with metadata:

    cat page.txt | python -m zim.formats wiki > foo.xml

then the metadata comes out as a leading text paragraph, e.g.

<p>Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.6
Template: Bar
</p>

Shouldn't this be parsed, e.g.

<metadata>
<item name="Content-Type">text/x-zim-wiki</item>
<item name="Wiki-Format">zim 0.6</item>
<item name="Template">Bar</item>
</metadata>

or something similar?

-- Johan