feat: extend markdown to support macros

With this feature, the exercises can be added to the lesson as:

    {{ Exercise("two-circles") }}

This also added fenced_code extension that allows adding id and classes
to code blocks.

This uses Python-Markdown library instead of Markdown2 that is used
everywhere in Frappe. The Python-Markdown is more easily extensible than
Markdown2.

Issue #115
This commit is contained in:
Anand Chitipothu
2021-06-09 22:30:20 +05:30
parent d90a1247f1
commit 5363fb7eb3
2 changed files with 81 additions and 0 deletions

View File

@@ -1,2 +1,5 @@
frappe
websocket_client
markdown
beautifulsoup4
lxml