aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorFrancesco Occhipinti <focchi.pinti@gmail.com>2018-08-01 21:32:16 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-01 12:32:16 -0700
commit2661658a696ebaab14b2792b7bbd38ef2b5904e4 (patch)
treec964cc0b8a4e4c441cb4648f89b1db7b198bcc59 /data
parent08694efd89dccaebbb663d44bfa7787df3755545 (diff)
downloadpandoc-2661658a696ebaab14b2792b7bbd38ef2b5904e4.tar.gz
RST writer: use `titleblock` instead of `title` variable for title block
Closes #4803 After this commit use `$titleblock$` in order to get what was contained in `$title$` before, that is a title and subtitle rendered according to the official rST method: http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle. from With this commit, the `$title$` and `$subtitle$` metadata are available and they simply carry the metadata values. This opens up more possibilities in templates.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/default.rst b/data/templates/default.rst
index 937eb72ae..9ba15f546 100644
--- a/data/templates/default.rst
+++ b/data/templates/default.rst
@@ -1,5 +1,5 @@
-$if(title)$
-$title$
+$if(titleblock)$
+$titleblock$
$endif$
$for(author)$