git.iko.soy/typeable/pandoc
on master help sign in
Minor code reformatting in script examples.
b95823fJohn MacFarlane
scripts/caps.py+2−1
@@ -1,6 +1,7 @@
1#!/usr/bin/env python
1#!/usr/bin/env python
2
2
3+"""
3−"""Pandoc filter to convert all regular text to uppercase.
4+Pandoc filter to convert all regular text to uppercase.
4Code, link URLs, etc. are not affected.
5Code, link URLs, etc. are not affected.
5"""
6"""
6
7
scripts/comments.py+2−1
@@ -2,7 +2,8 @@
2from pandoc import toJSONFilter
2from pandoc import toJSONFilter
3import re
3import re
4
4
5+"""
5−"""Pandoc filter that causes everything between
6+Pandoc filter that causes everything between
6'<!-- BEGIN COMMENT -->' and '<!-- END COMMENT -->'
7'<!-- BEGIN COMMENT -->' and '<!-- END COMMENT -->'
7to be ignored. The comment lines must appear on
8to be ignored. The comment lines must appear on
8lines by themselves, with blank lines surrounding
9lines by themselves, with blank lines surrounding
scripts/deemph.py+2−1
@@ -2,7 +2,8 @@
2from pandoc import walk, toJSONFilter
2from pandoc import walk, toJSONFilter
3from caps import caps
3from caps import caps
4
4
5+"""
5−"""Pandoc filter that causes emphasized text to be displayed
6+Pandoc filter that causes emphasized text to be displayed
6in ALL CAPS.
7in ALL CAPS.
7"""
8"""
8
9
scripts/graphviz.py+2−1
@@ -1,6 +1,7 @@
1#!/usr/bin/env python
1#!/usr/bin/env python
2
2
3+"""
3−"""Pandoc filter to process code blocks with class "graphviz" into
4+Pandoc filter to process code blocks with class "graphviz" into
4graphviz-generated images.
5graphviz-generated images.
5"""
6"""
6
7
scripts/myemph.py+2−1
@@ -1,7 +1,8 @@
1#!/usr/bin/env python
1#!/usr/bin/env python
2from pandoc import toJSONFilter, rawInline
2from pandoc import toJSONFilter, rawInline
3
3
4+"""
4−"""Pandoc filter that causes emphasis to be rendered using
5+Pandoc filter that causes emphasis to be rendered using
5the custom macro '\myemph{...}' rather than '\emph{...}'
6the custom macro '\myemph{...}' rather than '\emph{...}'
6in latex. Other output formats are unaffected.
7in latex. Other output formats are unaffected.
7"""
8"""