<story><title>Pandoc – A universal document converter</title><url>https://pandoc.org/</url></story><parent_chain><item><author>cosmic_quanta</author><text>One thing I love about pandoc that I don&amp;#x27;t see mentioned here is the ability to apply filters to transform documents mid-conversion.&lt;p&gt;I&amp;#x27;m using Pandoc to write my PhD thesis at the moment, from Markdown source, using certain filters to &amp;quot;augment&amp;quot; what Markdown can do. Examples:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;LaurentRDC&amp;#x2F;pandoc-plot&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;LaurentRDC&amp;#x2F;pandoc-plot&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;lierdakil&amp;#x2F;pandoc-crossref&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;lierdakil&amp;#x2F;pandoc-crossref&lt;/a&gt;&lt;p&gt;More info here: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pandoc.org&amp;#x2F;filters.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pandoc.org&amp;#x2F;filters.html&lt;/a&gt;</text></item></parent_chain><comment><author>phiresky</author><text>Yeah, filters are great. Writing filters is easy: Pandoc basically converts the input document into a universal AST (json), and a filter is just any program that takes this json as an input and outputs a modified json AST.&lt;p&gt;I wrote a filter that automatically converts URL citstions in markdown to &amp;quot;real&amp;quot; citations in any style you want - very useful for writing papers without fighting with bibtex and managing bibliographies manually: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;phiresky&amp;#x2F;pandoc-url2cite&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;phiresky&amp;#x2F;pandoc-url2cite&lt;/a&gt;</text></comment>
<story><title>Pandoc – A universal document converter</title><url>https://pandoc.org/</url></story><parent_chain><item><author>cosmic_quanta</author><text>One thing I love about pandoc that I don&amp;#x27;t see mentioned here is the ability to apply filters to transform documents mid-conversion.&lt;p&gt;I&amp;#x27;m using Pandoc to write my PhD thesis at the moment, from Markdown source, using certain filters to &amp;quot;augment&amp;quot; what Markdown can do. Examples:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;LaurentRDC&amp;#x2F;pandoc-plot&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;LaurentRDC&amp;#x2F;pandoc-plot&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;lierdakil&amp;#x2F;pandoc-crossref&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;lierdakil&amp;#x2F;pandoc-crossref&lt;/a&gt;&lt;p&gt;More info here: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pandoc.org&amp;#x2F;filters.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pandoc.org&amp;#x2F;filters.html&lt;/a&gt;</text></item></parent_chain><comment><author>flobosg</author><text>What a coincidence! I am also writing my PhD thesis with pandoc and filters, but I use panflute for the latter: &lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;scorreia.com&amp;#x2F;software&amp;#x2F;panflute&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;scorreia.com&amp;#x2F;software&amp;#x2F;panflute&amp;#x2F;&lt;/a&gt;</text></comment>