<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mmark on Miek Gieben</title>
    <link>https://miek.nl/tags/mmark/</link>
    <description>Recent content in Mmark on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Tue, 13 Aug 2019 07:39:00 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/mmark/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Learning Go</title>
      <link>https://miek.nl/2019/august/13/learning-go/</link>
      <pubDate>Tue, 13 Aug 2019 07:39:00 +0000</pubDate>
      <guid>https://miek.nl/2019/august/13/learning-go/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://miek.nl/go&#34;&gt;Learning Go&lt;/a&gt; is a book that teaches you Go. It includes exercises (and solutions)&#xA;to help put your new knowledge to the test.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mmark Updates</title>
      <link>https://miek.nl/2016/may/09/mmark-updates/</link>
      <pubDate>Mon, 09 May 2016 18:54:21 +0100</pubDate>
      <guid>https://miek.nl/2016/may/09/mmark-updates/</guid>
      <description>&lt;p&gt;Recent &lt;a href=&#34;https://github.com/miekg/mmark/issues&#34;&gt;bug reports&lt;/a&gt; prompted some Mmark development (guess&#xA;I am into bug-driven development). New releases can &lt;a href=&#34;https://github.com/miekg/mmark/releases&#34;&gt;be found on&#xA;Github&lt;/a&gt;. Anyway Mmark saw some bug fixes and new features:&lt;/p&gt;&#xA;&lt;p&gt;A feature/pull request from &lt;em&gt;blackfriday&lt;/em&gt; got merged, meaning that two different lists are &lt;em&gt;not&lt;/em&gt;&#xA;merged into one:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;*&lt;/span&gt; A&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;*&lt;/span&gt; B&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;1.&lt;/span&gt; One&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;2.&lt;/span&gt; Two&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Is now correctly seen as two different lists.&lt;/p&gt;&#xA;&lt;p&gt;Further more a &lt;code&gt;&amp;lt;br/&amp;gt;&lt;/code&gt; is converted to a &lt;code&gt;&amp;lt;vspace/&amp;gt;&lt;/code&gt; in the XML output. This is especially&#xA;useful when you want a vertical space after a definition term. See &lt;code&gt;rfc/rfc7511.md&lt;/code&gt; for an example&#xA;on how to use this.&lt;/p&gt;</description>
    </item>
    <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>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>
  </channel>
</rss>
