mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 03:06:30 +00:00
MANUAL: recommend use of raw_attribute extension in header includes.
See #4253.
This commit is contained in:
+11
@@ -3037,6 +3037,17 @@ template:
|
||||
$endif$
|
||||
$endfor$
|
||||
|
||||
Raw content to include in the document's header may be specified
|
||||
using `header-includes`; however, it is important to mark up
|
||||
this content as raw code for a particular output format, using
|
||||
the [`raw_attribute` extension](#extension-raw_attribute)), or it
|
||||
will be interpreted as markdown. For example:
|
||||
|
||||
header-includes:
|
||||
- ```{=latex}
|
||||
\let\oldsection\section
|
||||
\renewcommand{\section}[1]{\clearpage\oldsection{#1}}
|
||||
```
|
||||
|
||||
Backslash escapes
|
||||
-----------------
|
||||
|
||||
Reference in New Issue
Block a user