qwik-cms/content/pages/article/markdown.njk

29 lines
523 B
Plaintext
Raw Normal View History

2021-08-04 20:08:33 +02:00
{% extends "templates/article.njk" %}
{% import "components/toc.njk" as toc with context %}
2021-08-04 22:52:49 +02:00
{% import "components/code.njk" as code with context %}
2021-08-04 20:08:33 +02:00
{% block header %}
Markdown
{% endblock %}
{% block toc %}
{% output "toc" %}{% endoutput %}
{% endblock %}
{% block body %}
{% markdown %}
# Test of markdown
2021-08-04 22:52:49 +02:00
{{ code.import("code/test.js", "javascript") }}
2021-08-04 20:08:33 +02:00
* A list item
* A list item
* A list item
* A list item
2021-08-04 22:52:49 +02:00
*italic* **bold**
2021-08-04 20:08:33 +02:00
{{ toc.header("h1", "test header") }}
{% endmarkdown %}
{% endblock %}