git.iko.soy/typeable/pandoc
on master help sign in
README: Add documentation on backtick_code_blocks
c5724eaNikolay Yakimov
README+11−6
@@ -1337,9 +1337,9 @@ Note: blank lines in the verbatim text need not begin with four spaces.
1337
1337
1338In addition to standard indented code blocks, Pandoc supports
1338In addition to standard indented code blocks, Pandoc supports
1339*fenced* code blocks. These begin with a row of three or more
1339*fenced* code blocks. These begin with a row of three or more
1340−tildes (`~`) or backticks (`` ` ``) and end with a row of tildes or
1340+tildes (`~`) and end with a row of tildes that must be at least as long as
1341−backticks that must be at least as long as the starting row. Everything
1342−between these lines is treated as code. No indentation is necessary:
1341+the starting row. Everything between these lines is treated as code. No
1342+indentation is necessary:
1343
1343
1344 ~~~~~~~
1344 ~~~~~~~
1345 if (a > 3) {
1345 if (a > 3) {
@@ -1359,9 +1359,14 @@ row of tildes or backticks at the start and end:
1359 ~~~~~~~~~~
1359 ~~~~~~~~~~
1360 ~~~~~~~~~~~~~~~~
1360 ~~~~~~~~~~~~~~~~
1361
1361
1362+#### Extension: `backtick_code_blocks` ####
1363+
1364+Same as `fenced_code_blocks`, but uses backticks (`` ` ``) instead of tildes
1365+(`~`).
1366+
1362#### Extension: `fenced_code_attributes` ####
1367#### Extension: `fenced_code_attributes` ####
1363
1368
1364−Optionally, you may attach attributes to the code block using
1369+Optionally, you may attach attributes to fenced or backtick code block using
1365this syntax:
1370this syntax:
1366
1371
1367 ~~~~ {#mycode .haskell .numberLines startFrom="100"}
1372 ~~~~ {#mycode .haskell .numberLines startFrom="100"}
@@ -2690,8 +2695,8 @@ can produce `.json` and `.yaml` files from any of the supported formats.
2690
2695
2691In-field markup: In bibtex and biblatex databases, pandoc-citeproc parses
2696In-field markup: In bibtex and biblatex databases, pandoc-citeproc parses
2692(a subset of) LaTeX markup; in CSL JSON databases, an HTML-like markup
2697(a subset of) LaTeX markup; in CSL JSON databases, an HTML-like markup
2693−([specs](http://docs.citationstyles.org/en/1.0/release-notes.html#rich-text-markup-within-fields));
2698+([specs](http://docs.citationstyles.org/en/1.0/release-notes.html#rich-text-markup-within-fields));
2694−and in CSL YAML databases, pandoc markdown. `pandoc-citeproc -j` and `-y`
2699+and in CSL YAML databases, pandoc markdown. `pandoc-citeproc -j` and `-y`
2695interconvert these markup formats as far as possible.
2700interconvert these markup formats as far as possible.
2696
2701
2697As an alternative to specifying a bibliography file, you can include
2702As an alternative to specifying a bibliography file, you can include