zk_html/tech/md-ext/vimwiki.html

59 lines
3.6 KiB
HTML
Raw Normal View History

2020-04-22 06:30:12 +00:00
<!doctype html>
<html>
<head>
<title>Zk | Vimwiki Markdown Extension</title>
2023-05-11 05:35:08 +00:00
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Gentium+Plus&family=Lato&family=Ubuntu+Monodisplay=swap" />
2020-04-22 06:30:12 +00:00
<link rel="stylesheet" type="text/css" href="/style.css" />
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
</head>
<body>
<main>
<header>
<h1>Zk | Vimwiki Markdown Extension</h1>
</header>
<article class="content">
<p><span class="tag">tech</span> <span class="tag">markdown</span> <span class="tag">vimwiki</span> <span class="tag">python</span> <span class="tag">package</span></p>
<h2 id="what-it-does">What it does</h2>
2020-06-24 07:10:07 +00:00
<p>I like markdown better than vimiwki&rsquo;s wiki syntax, especially since I run so many sites that use markdown for pages. Unfortunately, I like a few attributes of vimiwki&rsquo;s syntax, such as the to-do lists and the tags.</p>
2020-04-22 06:35:13 +00:00
<p>This extension brings in that functionality as a Python Markdown extension.</p>
<ul>
<li class="rejected"> Rejected</li>
<li class="done0"> 0%</li>
<li class="done1"> 1-33%</li>
<li class="done2"> 34-66%</li>
<li class="done3"> 67-99%</li>
<li class="done4"> 100%</li>
</ul>
2020-04-22 06:30:12 +00:00
<h2 id="how-to-use-it">How to use it</h2>
2020-04-22 06:35:13 +00:00
<div class="codehilite"><pre><span></span><code><span class="n">default_config</span> <span class="o">=</span> <span class="p">{</span>
<span class="s1">&#39;list_levels&#39;</span><span class="p">:</span> <span class="s1">&#39;- .oOX&#39;</span><span class="p">,</span>
<span class="s1">&#39;list_classes&#39;</span><span class="p">:</span> <span class="p">[</span><span class="s1">&#39;rejected&#39;</span><span class="p">,</span> <span class="s1">&#39;done0&#39;</span><span class="p">,</span> <span class="s1">&#39;done1&#39;</span><span class="p">,</span> <span class="s1">&#39;done2&#39;</span><span class="p">,</span> <span class="s1">&#39;done3&#39;</span><span class="p">,</span> <span class="s1">&#39;done4&#39;</span><span class="p">],</span>
<span class="p">}</span>
<span class="n">my_config</span> <span class="o">=</span> <span class="p">{</span>
<span class="s1">&#39;list_levels&#39;</span><span class="p">:</span> <span class="s1">&#39;iao&#39;</span><span class="p">,</span>
<span class="s1">&#39;list_classes&#39;</span><span class="p">:</span> <span class="p">[</span><span class="s1">&#39;yip&#39;</span><span class="p">,</span> <span class="s1">&#39;yap&#39;</span><span class="p">,</span> <span class="s1">&#39;yop&#39;</span><span class="p">],</span>
<span class="p">}</span>
<span class="n">markdown</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">extensions</span><span class="o">=</span><span class="p">[</span><span class="n">VimwikiExtension</span><span class="p">(</span><span class="o">**</span><span class="n">my_config</span><span class="p">)])</span>
</code></pre></div>
<h2 id="where-to-get-it">Where to get it</h2>
<ul>
<li><a href="https://pypi.com/project/markdown-vimwiki">PyPI</a></li>
<li><a href="https://github.com/makyo/markdown-vimiwki">Github</a></li>
</ul>
2020-04-22 06:30:12 +00:00
</article>
<footer>
2023-05-11 05:20:07 +00:00
<p>Page generated on 2023-05-10</p>
2020-04-22 06:30:12 +00:00
</footer>
</main>
2020-06-24 07:10:07 +00:00
<script type="text/javascript">
document.querySelectorAll('.tag').forEach(tag => {
let text = tag.innerText;
tag.innerText = '';
tag.innerHTML = `<a href="/tags.html#${text}">${text}</a>`;
});
</script>
2020-04-22 06:30:12 +00:00
</body>
</html>