<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Markdown on Miek Gieben</title>
    <link>https://miek.nl/tags/markdown/</link>
    <description>Recent content in Markdown on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Sat, 05 Mar 2016 11:13:21 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/markdown/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Mmark Syntax Document</title>
      <link>https://miek.nl/2016/march/05/mmark-syntax-document/</link>
      <pubDate>Sat, 05 Mar 2016 11:13:21 +0000</pubDate>
      <guid>https://miek.nl/2016/march/05/mmark-syntax-document/</guid>
      <description>&lt;p&gt;The canonical version of this document is the &lt;a href=&#34;https://github.com/miekg/mmark/wiki/Syntax&#34;&gt;version in the Github&#xA;Wiki&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h1 id=&#34;mmark-syntax&#34;&gt;Mmark Syntax&lt;/h1&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;All syntax elements should be described. Please open an issue or PR if there is something&#xA;you want to improve here, &lt;em&gt;or&lt;/em&gt; even better, edit the doc!&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This document describes all the syntax elements that can be used in Mmark. Mmark&amp;rsquo;s syntax&#xA;is based on the &lt;a href=&#34;https://daringfireball.net/projects/markdown/syntax&#34;&gt;&amp;ldquo;standard&amp;rdquo; Markdown syntax&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It adds numerous enhancements to make it suitable for writing (IETF) Internet Drafts and even&#xA;complete books. It &lt;strike&gt;steals&lt;/strike&gt; borrows syntax elements from &lt;a href=&#34;http://johnmacfarlane.net/pandoc/&#34;&gt;pandoc&lt;/a&gt;, &lt;a href=&#34;http://http://kramdown.gettalong.org/&#34;&gt;kramdown&lt;/a&gt;,&#xA;&lt;a href=&#34;https://leanpub.com/help/manual&#34;&gt;leanpub&lt;/a&gt;, &lt;a href=&#34;http://www.methods.co.nz/asciidoc/&#34;&gt;asciidoc&lt;/a&gt;, &lt;a href=&#34;http://michelf.com/projects/php-markdown/extra/&#34;&gt;PHP markdown extra&lt;/a&gt; and &lt;a href=&#34;http://scholarlymarkdown.com/Scholarly-Markdown-Guide.html&#34;&gt;Scholarly markdown&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title> Inline Attribute Lists</title>
      <link>https://miek.nl/2016/march/01/inline-attribute-lists/</link>
      <pubDate>Tue, 01 Mar 2016 14:14:24 +0000</pubDate>
      <guid>https://miek.nl/2016/march/01/inline-attribute-lists/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/miekg/mmark&#34;&gt;Mmark&lt;/a&gt; is a powerful markdown parser.&lt;/p&gt;&#xA;&lt;p&gt;With Inline Attribute Lists (&lt;a href=&#34;http://kramdown.gettalong.org/syntax.html#block-ials&#34;&gt;IALs&lt;/a&gt;)&#xA;you can add extra information to block elements, think of extra classes, attributes or an ID.&#xA;In Mmark these have the syntax: &lt;code&gt;{#id .class attr=&amp;quot;key&amp;quot;}&lt;/code&gt;. And should be specified &lt;em&gt;before&lt;/em&gt; a&#xA;block level element.&lt;/p&gt;&#xA;&lt;p&gt;These will mostly be backend specific, i.e. a &lt;code&gt;{color=&amp;quot;blue&amp;quot;}&lt;/code&gt; might do something in HTML5 output,&#xA;but does nothing in the XML v2 output. Worse yet; the XML might not validate anymore. Mmark try to&#xA;help here by white listing the allowed attributes for an element (this happens in each renderer and&#xA;is currently a work in progress).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Subfigures in mmark</title>
      <link>https://miek.nl/2015/october/03/subfigures-in-mmark/</link>
      <pubDate>Sat, 03 Oct 2015 13:24:00 +0000</pubDate>
      <guid>https://miek.nl/2015/october/03/subfigures-in-mmark/</guid>
      <description>&lt;p&gt;For XML2RFC version 3 there is a new &lt;a href=&#34;https://tools.ietf.org/html/draft-hoffman-xml2rfc-23#section-2.25&#34;&gt;extended figure element&lt;/a&gt;,&#xA;namely: it can contain &lt;em&gt;multiple&lt;/em&gt; &lt;code&gt;&amp;lt;artwork&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;sourcecode&amp;gt;&lt;/code&gt; (new in v3) elements.&#xA;This in turn meant that mmark needed some way to signal &amp;ldquo;these artworks belong together&amp;rdquo;.&#xA;Now &lt;a href=&#34;http://scholarlymarkdown.com/Scholarly-Markdown-Guide.html&#34;&gt;Scholarly markdown&lt;/a&gt;&#xA;has a syntax for this. It uses a special section syntax and all images in that section become&#xA;subfigures of a larger figure. Disadvantage of this syntax is that it can not be&#xA;used in lists. Hence mmark uses a quote like solution, just like asides (&lt;code&gt;A&amp;gt;&lt;/code&gt;),&#xA;but for figures: we prefix the entire paragraph with &lt;code&gt;F&amp;gt;&lt;/code&gt; .&lt;/p&gt;</description>
    </item>
    <item>
      <title>Callouts in Figures in Mmark</title>
      <link>https://miek.nl/2015/september/27/callouts-in-figures-in-mmark/</link>
      <pubDate>Sun, 27 Sep 2015 14:02:00 +0000</pubDate>
      <guid>https://miek.nl/2015/september/27/callouts-in-figures-in-mmark/</guid>
      <description>&lt;p&gt;The use of callouts in Mmark came from&#xA;&lt;a href=&#34;http://www.methods.co.nz/asciidoc/chunked/ch20.html&#34;&gt;Asciidoc&lt;/a&gt;, they are &amp;ldquo;&amp;hellip;&#xA;a mechanism for annotating verbatim text&amp;rdquo;. In mmark they work like this.&lt;/p&gt;&#xA;&lt;p&gt;In a codeblocks you can use &lt;code&gt;&amp;lt;1&amp;gt;&lt;/code&gt;, or &lt;code&gt;&amp;lt;2&amp;gt;&lt;/code&gt;, etc. to create a callout. After the&#xA;codeblock/figure you can reference it. An example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;    Code  &amp;lt;1&amp;gt;&#xA;    More  &amp;lt;1&amp;gt;&#xA;    Not a callout \&amp;lt;3&amp;gt;&#xA;&#xA;As you can see in &amp;lt;1&amp;gt; but not in \&amp;lt;1&amp;gt;. There is no &amp;lt;3&amp;gt;.&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This will be rendered as:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Lists in lists with style</title>
      <link>https://miek.nl/2015/september/24/lists-in-lists-with-style/</link>
      <pubDate>Thu, 24 Sep 2015 11:56:00 +0000</pubDate>
      <guid>https://miek.nl/2015/september/24/lists-in-lists-with-style/</guid>
      <description>&lt;p&gt;Mmark is a markdown dialect for writing RFCs (or books!). The main reason it&#xA;exists is because the IETF is developing a new XML format (version 3) for&#xA;writing RFCs. This new format is &lt;em&gt;way&lt;/em&gt; more powerful, so sadly&#xA;&lt;a href=&#34;https://tools.ietf.org/html/rfc7328.html&#34;&gt;Pandoc2rfc&lt;/a&gt; does not cut it anymore.&lt;/p&gt;&#xA;&lt;p&gt;Right now &lt;a href=&#34;https://github.com/miekg/mmark&#34;&gt;mmark&lt;/a&gt; fully supports writing&#xA;RFCs in XML2RFC version 2, but anything written can also be converted to&#xA;the (work-in-progress) XML2RFC version 3 format. In a series of blog posts&#xA;I will detail some of the features, such as list styling while remaining upwards&#xA;compatible.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learning Go in Markdown</title>
      <link>https://miek.nl/2015/may/09/learning-go-in-markdown/</link>
      <pubDate>Sat, 09 May 2015 07:39:00 +0000</pubDate>
      <guid>https://miek.nl/2015/may/09/learning-go-in-markdown/</guid>
      <description>&lt;p&gt;The original &lt;a href=&#34;http://miek.nl/downloads/Go/Learning-Go-latest.pdf&#34;&gt;Learning Go&lt;/a&gt;&#xA;is written in &lt;a href=&#34;https://github.com/miekg/gobook&#34;&gt;LaTeX&lt;/a&gt;. With LaTeX you get&#xA;beautiful (PDF) output, but there are a few problems. Most notably I consider&#xA;LaTeX an &lt;em&gt;output&lt;/em&gt; format: it is hard to convert it into something else. Markdown&#xA;offers much more flexibility in that regard. The downside of markdown is that is&#xA;not powerful enough to typeset a book. To fix this I forked&#xA;&lt;a href=&#34;https://github.com/russross/blackfriday&#34;&gt;BlackFriday&lt;/a&gt; extended it and renamed&#xA;it &lt;a href=&#34;https://github.com/miekg/mmark&#34;&gt;Mmark&lt;/a&gt; (These are all written in Golang).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Markdown for XML2RFC v3 - Update</title>
      <link>https://miek.nl/2014/december/18/markdown-for-xml2rfc-v3-update/</link>
      <pubDate>Thu, 18 Dec 2014 22:46:00 +0000</pubDate>
      <guid>https://miek.nl/2014/december/18/markdown-for-xml2rfc-v3-update/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;And another update (2015-01-12)&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;This is a follow up the &lt;a href=&#34;http://miek.nl/posts/2014/Nov/27/markdown-for-xml2rfc-v3/&#34;&gt;previous article&lt;/a&gt;&#xA;about using markdown for XML2RFC. The syntax has been changed and more features&#xA;have been implement. And my&#xA;&lt;a href=&#34;https://github.com/miekg/blackfriday&#34;&gt;blackfriday&lt;/a&gt; fork has been renamed&#xA;&lt;a href=&#34;https://github.com/miekg/mmark&#34;&gt;mmark&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;See &lt;a href=&#34;https://github.com/miekg/mmark/blob/master/mmark2rfc.txt&#34;&gt;this document&lt;/a&gt; for&#xA;an up to date syntax of mmark. A short summery will be given here.&lt;/p&gt;&#xA;&lt;p&gt;New features are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Include raw XML references&lt;/li&gt;&#xA;&lt;li&gt;Allow HTML comments to be converted to &lt;code&gt;cref&lt;/code&gt;s&lt;/li&gt;&#xA;&lt;li&gt;Abbreviations (&lt;a href=&#34;https://michelf.ca/projects/php-markdown/extra/#abbr&#34;&gt;https://michelf.ca/projects/php-markdown/extra/#abbr&lt;/a&gt;), this is not used&#xA;in XML2RFC but seems a relatively standard markdown extension&lt;/li&gt;&#xA;&lt;li&gt;Example lists (&lt;a href=&#34;http://johnmacfarlane.net/pandoc/README.html#numbered-example-lists&#34;&gt;http://johnmacfarlane.net/pandoc/README.html#numbered-example-lists&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;Quote attribution&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Also the possibility to convert &lt;a href=&#34;https://tools.ietf.org/html/rfc7328.html&#34;&gt;pandoc2rfc&lt;/a&gt; documents&#xA;to mmark has been added (as a quick and dirty perl script + pandoc!):&lt;/p&gt;</description>
    </item>
    <item>
      <title>Markdown for XML2RFC v3</title>
      <link>https://miek.nl/2014/november/27/markdown-for-xml2rfc-v3/</link>
      <pubDate>Thu, 27 Nov 2014 22:50:00 +0000</pubDate>
      <guid>https://miek.nl/2014/november/27/markdown-for-xml2rfc-v3/</guid>
      <description>&lt;p&gt;Or&amp;hellip; how to write Markdown to generate XML that is valid XML2RFC v3. These&#xA;are some assorted notes and ideas&lt;/p&gt;&#xA;&lt;p&gt;Goal:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Self contained file with all information to generate a complete I-D;&lt;/li&gt;&#xA;&lt;li&gt;CommonMarkdown, with some extension.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I&amp;rsquo;m working on implementing these ideas in &lt;a href=&#34;https://github.com/miekg/blackfriday&#34;&gt;blackfriday&lt;/a&gt;.&#xA;The following has already been implemented:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Abstract;&lt;/li&gt;&#xA;&lt;li&gt;Citation;&lt;/li&gt;&#xA;&lt;li&gt;Document divisions;&lt;/li&gt;&#xA;&lt;li&gt;Index;&lt;/li&gt;&#xA;&lt;li&gt;File inclusion;&lt;/li&gt;&#xA;&lt;li&gt;Extra attributes (kramdown&amp;rsquo;s IAL.) (work-in-progress).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;document-meta-data&#34;&gt;Document meta data&lt;/h2&gt;&#xA;&lt;p&gt;In TOML - much easier than YAML for instance, lines are starting with %. We don&amp;rsquo;t need to specify the citations&#xA;here because:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vim live preview (sort of)</title>
      <link>https://miek.nl/2014/october/08/vim-live-preview-sort-of/</link>
      <pubDate>Wed, 08 Oct 2014 22:40:00 +0000</pubDate>
      <guid>https://miek.nl/2014/october/08/vim-live-preview-sort-of/</guid>
      <description>&lt;p&gt;When editing Markdown files or internet drafts in&#xA;&lt;a href=&#34;https://tools.ietf.org/html/rfc7328.html&#34;&gt;Pandoc&amp;rsquo;s Markdown&lt;/a&gt;, I wanted&#xA;to see some live preview window. I looked around a bit, but the solutions presented on the&#xA;Internet, seemed to be insufficient, either to clumsy or don&amp;rsquo;t work at all.&lt;/p&gt;&#xA;&lt;p&gt;My usual routine is: edit -&amp;gt; write -&amp;gt; make -&amp;gt; reload &amp;ldquo;rendered&amp;rdquo; file.&lt;/p&gt;&#xA;&lt;p&gt;Turns out you can automate most of this. Vim has a feature: &lt;code&gt;--servername &amp;lt;id&amp;gt;&lt;/code&gt; which&#xA;allows you to send commands to another vim instance using that &lt;code&gt;&amp;lt;id&amp;gt;&lt;/code&gt;.&#xA;So we need two pieces to make this work.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
