update from sparkleup
This commit is contained in:
parent
4ae3482f00
commit
277f0ed406
|
@ -33,10 +33,11 @@
|
|||
<p>Instead, I'd like to post about some recent writing tech projects in the form of three Markdown extensions.</p>
|
||||
<h1 id="verse-extension">Verse extension</h1>
|
||||
<p>First, we have the Verse extension. It's dead simple: it looks for a block of text fenced in with triple single-quotes and wraps it in a <code><div class="verse"></code>. For example,</p>
|
||||
<div class="codehilite"><pre><span></span><code><span class="o"><</span><span class="n">div</span> <span class="k">class</span><span class="o">=</span><span class="ss">"verse"</span><span class="o">></span> <span class="n">Arctic</span> <span class="n">fox</span><span class="s1">'s den</span>
|
||||
<span class="s1">adorned with flowers and snow</span>
|
||||
<span class="s1">garden in winter</span>
|
||||
<span class="s1">'''</span>
|
||||
<div class="codehilite"><pre><span></span><code><span class="s1">'''</span>
|
||||
<span class="s1">Arctic fox'</span><span class="n">s</span> <span class="n">den</span>
|
||||
<span class="n">adorned</span> <span class="k">with</span> <span class="n">flowers</span> <span class="k">and</span> <span class="n">snow</span>
|
||||
<span class="n">garden</span> <span class="k">in</span> <span class="n">winter</span>
|
||||
<span class="s1">''</span><span class="err">'</span>
|
||||
</code></pre></div>
|
||||
|
||||
|
||||
|
@ -54,12 +55,10 @@ garden in winter<span class="p"></</span><span class="nt">div</span><span cla
|
|||
</code></pre></div>
|
||||
|
||||
|
||||
<p>looks like:
|
||||
</div>
|
||||
Arctic fox's den
|
||||
<p>looks like:</p>
|
||||
<div class="verse">Arctic fox's den
|
||||
adorned with flowers and snow
|
||||
garden in winter
|
||||
'''</p>
|
||||
garden in winter</div>
|
||||
<p>I can write verse in an editor with newlines and indentation however I please, and it shows up just like that within the browser without using a <code><pre></code> tag, which defaults to monospace font. I can also overload what tag it uses, so I can even use my own <code><verse></verse></code> tag for something more semantically acurate.</p>
|
||||
<h1 id="vimwiki-extensions">Vimwiki extensions</h1>
|
||||
<p>Vimwiki, the personal wiki I use, has its own markup format which...is fine? Like, it's okay. the problem is that it's just dissimilar enough from Markdown that I have a hard time remembering the differences. Even if I were to remember them, when I transfer my files to hosting on a static site, they'd be in the wrong format.</p>
|
||||
|
|
Loading…
Reference in New Issue