2018-07-20 16:45:42 +01:00
|
|
|
{% extends "base.j2.html" %}
|
|
|
|
{% block meta %}
|
|
|
|
<meta name="author" content="{{ author.name }} <{{ author.email }}>" />
|
|
|
|
<meta name="description" content="{{ post.summary|e }}" />
|
|
|
|
<link rel="canonical" href="{{ post.url }}" />
|
Back To Pandoc
So, Python Markdown is a bottomless pit of horrors, including crippling parsing bugs,
random out of nowhere, lack of features. It's definitely much faster, than
Pandoc, but Pandoc doesn't go full retard where there's a regex in a fenced code block,
that happens to be a regex for markdown elements.
Also added some ugly post string replacements to make Pandoc fenced code output work
with Prism:
instead of the Pandoc <pre class="codelang"><code>, Prism wants
<pre><code class="language-codelang>, so I added a regex sub, because it's 00:32.
2018-08-04 00:28:55 +01:00
|
|
|
{% if post.has_code %}
|
|
|
|
<style media="all">
|
|
|
|
{% include 'prism.css' %}
|
|
|
|
</style>
|
2018-08-04 09:30:26 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block prism %}
|
|
|
|
{% if post.has_code %}
|
|
|
|
<script>
|
|
|
|
{% include 'prism.js' %}
|
|
|
|
</script>
|
Back To Pandoc
So, Python Markdown is a bottomless pit of horrors, including crippling parsing bugs,
random out of nowhere, lack of features. It's definitely much faster, than
Pandoc, but Pandoc doesn't go full retard where there's a regex in a fenced code block,
that happens to be a regex for markdown elements.
Also added some ugly post string replacements to make Pandoc fenced code output work
with Prism:
instead of the Pandoc <pre class="codelang"><code>, Prism wants
<pre><code class="language-codelang>, so I added a regex sub, because it's 00:32.
2018-08-04 00:28:55 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2018-11-10 20:49:13 +00:00
|
|
|
{% block licence %}
|
|
|
|
<link rel="license" href="https://spdx.org/licenses/{{ post.licence }}.html" type="{{ post.licence }}" />
|
|
|
|
{% endblock %}
|