git.iko.soy/typeable/pandoc
on master help sign in
Added more explanation of metadata in README.
2c88693John MacFarlane
@@ -1843,6 +1843,23 @@ equivalent of the markdown in the `abstract` field:
1843 <p>This is the abstract.</p>
1843 <p>This is the abstract.</p>
1844 <p>It consists of two paragraphs.</p>
1844 <p>It consists of two paragraphs.</p>
1845
1845
1846+Note: The example above will not work with the default templates.
1847+The `author` variable in the templates expects a simple list or string,
1848+and there is no `abstract` variable in most templates. To use these,
1849+you would need to use a custom template with appropriate variables.
1850+For example:
1851+
1852+ $for(author)$
1853+ $if(author.name)$
1854+ $author.name$$if(author.affiliation)$ ($author.affiliation$)$endif$
1855+ $else$
1856+ $author$
1857+ $endif$
1858+ $endfor$
1859+
1860+ $if(abstract)$
1861+ Abstract: $abstract$
1862+ $endif$
1846
1863
1847Backslash escapes
1864Backslash escapes
1848-----------------
1865-----------------