xproc / xproc.org

The xproc.org website
1 stars 5 forks source link

Specifying a page title is not possible #11

Closed xatapult closed 4 years ago

xatapult commented 4 years ago

I want to add a specific title to a page and use the main.xml header.

At the top of the Markdown page there is a piece of XML:

<pubmeta>
<header>main</header>
<title>XProc 3.0 - Home</title>
</pubmeta>

The <title> alters the page title but does not insert a <h1> with this title at the top of the page.

When I manually insert an <h1>My title</h1> at the top of the page it disappears in the build process (strangely enough an <h2>...</h2> stays in...)

The Markdown title markers #, ## etc. are not recognized by the build process.

So I'm stuck.

I would prefer that an automatic <h1> would be inserted at the top of the page with the contents of the pubmeta/title element.

xatapult commented 4 years ago

@ndw If you can tell me in a nutshell where the magic happens I could try to fix some of this myself?

ndw commented 4 years ago

It's just XProc pipelines in tools/xpl

xatapult commented 4 years ago

Fixed.