From b53928cf4f703b8b63388f17614a13cbe6f1b619 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 21 May 2022 18:14:37 -0600 Subject: Add new extensions for ^ and ~ syntax --- ChangeLog | 5 +++++ README.md | 4 ++++ requirements.txt | 13 +++++++------ src/pyssg/md_parser.py | 4 +++- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 710831a..d99ef27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ CHANGES ======= +v0.7.1 +------ + +* add proper var expansion from config file + v0.7.0 ------ diff --git a/README.md b/README.md index 3aee523..dfa0290 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Inspired (initially) by Roman Zolotarev's [`ssg5`](https://rgz.ee/bin/ssg5) and - [ ] More complex directory structure to support multiple subdomains and different types of pages. - [ ] Option/change to using an SQL database instead of the custom solution. - [x] Checksum checking because the timestamp of the file is not enough. +- [ ] Better management of the extensions. ### Markdown features @@ -41,6 +42,9 @@ This program uses the base [`markdown` syntax](https://daringfireball.net/projec - [yafg - Yet Another Figure Generator](https://git.sr.ht/~ferruck/yafg) - [markdown.highlight](https://github.com/ribalba/markdown.highlight) - [Markdown Checklist](https://github.com/FND/markdown-checklist) +- [PyMdown Extensions](https://facelessuser.github.io/pymdown-extensions/) + - [Caret](https://facelessuser.github.io/pymdown-extensions/extensions/caret/) + - [Tilde](https://facelessuser.github.io/pymdown-extensions/extensions/tilde/) ## Installation diff --git a/requirements.txt b/requirements.txt index 5a026f6..8cc9c23 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ -Jinja2==3.1.1 -Markdown==3.3.6 -markdown-checklist==0.4.3 -MarkdownHighlight==0.1.3 -MarkupSafe==2.1.1 -yafg==0.3 +Jinja2>=3.1.1 +Markdown>=3.3.6 +markdown-checklist>=0.4.3 +MarkdownHighlight>=0.1.3 +MarkupSafe>=2.1.1 +yafg>=0.3 +pymdown-extensions>=9.4 diff --git a/src/pyssg/md_parser.py b/src/pyssg/md_parser.py index a516f60..8148536 100644 --- a/src/pyssg/md_parser.py +++ b/src/pyssg/md_parser.py @@ -31,7 +31,9 @@ def _get_md_obj() -> Markdown: figureNumberClass="number", figureNumberText="Figure"), HighlightExtension(), - ChecklistExtension()] + ChecklistExtension(), + 'pymdownx.caret', + 'pymdownx.tilde'] log.debug('list of md extensions: (%s)', ', '.join([e if isinstance(e, str) else type(e).__name__ for e in exts])) -- cgit v1.2.3-70-g09d2