<?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</title><link>http://salopst.yearl.us/tags/markdown/</link><description>Recent content in Markdown on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Sat, 18 Sep 2021 02:30:00 +0100</lastBuildDate><atom:link href="http://salopst.yearl.us/tags/markdown/index.xml" rel="self" type="application/rss+xml"/><item><title>Diagrams and Maths in Hugo</title><link>http://salopst.yearl.us/drawing-diagrams-and-making-math-in-hugo/</link><pubDate>Tue, 07 Sep 2021 20:13:00 +0100</pubDate><guid>http://salopst.yearl.us/drawing-diagrams-and-making-math-in-hugo/</guid><description>&lt;h2 id="can-we-handle-flowcharts-using-flowchartjs-"&gt;Can we handle flowcharts using &lt;code&gt;flowchart.js&lt;/code&gt; ?&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="http://flowchart.js.org/"&gt;flowchart.js&lt;/a&gt;?&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Given a code-block of&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;```flow&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0=&amp;gt;condition: Does it move?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1=&amp;gt;condition: Should it?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2=&amp;gt;condition: Should it?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;np=&amp;gt;end: No problem!&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;dt=&amp;gt;end: Duct Tape! No Problem&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;wd=&amp;gt;end: Wd40 Rien de problem!&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0(yes)-&amp;gt;q1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0(no)-&amp;gt;q2&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1(yes)-&amp;gt;np&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1(no)-&amp;gt;dt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2(yes)-&amp;gt;wd&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2(no)-&amp;gt;np&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;&#10;```flow&#10;q0=&amp;gt;condition: Does it move?&#10;q1=&amp;gt;condition: Should it?&#10;q2=&amp;gt;condition: Should it?&#10;&#10;np=&amp;gt;end: No problem!&#10;dt=&amp;gt;end: Duct Tape! No Problem&#10;wd=&amp;gt;end: Wd40 Rien de problem!&#10;&#10;q0(yes)-&amp;gt;q1&#10;q0(no)-&amp;gt;q2&#10;&#10;q1(yes)-&amp;gt;np&#10;q1(no)-&amp;gt;dt&#10;&#10;q2(yes)-&amp;gt;wd&#10;q2(no)-&amp;gt;np&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="this-is-a-mermaid-example"&gt;This is a mermaid example:&lt;/h2&gt;&#10;&lt;p&gt;With the shortcode&lt;/p&gt;</description></item><item><title>Scratch notes on Hugo (and this implementation)</title><link>http://salopst.yearl.us/scratch-notes-on-hugo/</link><pubDate>Mon, 18 May 2020 14:33:57 +0100</pubDate><guid>http://salopst.yearl.us/scratch-notes-on-hugo/</guid><description>&lt;img src="http://salopst.yearl.us/img/uploads/leaping-baby-brown-trout.jpg" alt="Brown trout are the best trout" class="center" style="border-radius: 50px;" /&gt;&#10;&#10;&#10;&lt;h3 id="-this-image-above-is-not-in-the-general-template-for-a-post-file-it-is-added-with"&gt;^^^ This image above is not in the general template for a post file. It is added with:&lt;/h3&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{{&amp;lt; image src=&amp;#34;/img/uploads/leaping-baby-brown-trout.jpg&amp;#34; &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; alt=&amp;#34;Hello Friendo&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; position=&amp;#34;center&amp;#34; &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style=&amp;#34;border-radius: 50px;&amp;#34; &amp;gt;}}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Escaping&lt;/strong&gt; the shortcode such that it would not be executed was non-obvious. It is done with &lt;code&gt;/*&lt;/code&gt; and &lt;code&gt;*/&lt;/code&gt; &lt;em&gt;immediately inside&lt;/em&gt; the shortcode&amp;rsquo;s &lt;code&gt;{{&lt;/code&gt; and &lt;code&gt;}}&lt;/code&gt;&amp;hellip; hpwever you slice it, that can haardly be considered concise.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Hugo&amp;rsquo;s default markdown flavour was blackfriday: &lt;a href="https://github.com/russross/blackfriday"&gt;https://github.com/russross/blackfriday&lt;/a&gt; until Hugo version v0.60.0 adopted goldmark: &lt;a href="https://libs.garden/go/yuin/goldmark"&gt;https://libs.garden/go/yuin/goldmark&lt;/a&gt;. So, to deal with raw inline HTML in your Markdown files we need to enable the unsafe mode in &lt;code&gt;config.toml&lt;/code&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Exploring Typora... and now Hugo</title><link>http://salopst.yearl.us/exploring-the-typora-markdown-editor/</link><pubDate>Tue, 17 Jul 2018 13:00:00 +0000</pubDate><guid>http://salopst.yearl.us/exploring-the-typora-markdown-editor/</guid><description>&lt;p&gt;This wee MD file was created back on &lt;code&gt;date: 2018-07-17 &lt;/code&gt; to explore a new x-platform markdown editor I had heard about called Typora, &lt;a href="https://typora.io/"&gt;https://typora.io/&lt;/a&gt;. I was using a Mac then, a mid-2012 MPB, that had at that point done sterling service for 6 years and 13 days.&lt;/p&gt;&#10;&lt;p&gt;The below is just a bunch of BS written back then to try out some of the splendid features it seemed to offer. Now the challenge is to see if some of the non-markdown features render under Hugo.&lt;/p&gt;</description></item></channel></rss>