Notes and TODOs related to porting gh-themes-magick to pandoc v2.x
.
Table of Contents
In order to work with pandoc v2 gh-themes-magick needs some fixing in the invocation scripts, and checking is the templates might need fixing to.
Also, I'll take the opportunity and update the project as well.
- Add
.gitignore
- Add
.gitattributes
- GH-PAGES Webiste:
- Change HTML previews from
https://cdn.rawgit.com
tohttp://htmlpreview.github.io/
— DOESN'T WORK
- Change HTML previews from
- Add
task-list.lua
filter to support GFM Task Lists:-
docs/task-list.lua
-
gh-themes/architect/task-list.lua
-
gh-themes/cayman/task-list.lua
-
gh-themes/dinky/task-list.lua
-
gh-themes/leapday/task-list.lua
-
gh-themes/merlot/task-list.lua
-
The problem with the gfm
format is that it doesn't support YAML extension:
Note, however, that
commonmark
andgfm
have limited support for extensions. Only those listed below (and smart and raw_tex) will work. The extensions can, however, all be individually disabled. Also,raw_tex
only affectsgfm
output, not input.
pipe_tables
,raw_html
,fenced_code_blocks
,auto_identifiers
,ascii_identifiers
,backtick_code_blocks
,autolink_bare_uris
,intraword_underscores
,strikeout
,hard_line_breaks
,emoji
,shortcut_reference_links
,angle_brackets_escapable
.
Fix pandoc invocation option in all scripts, from:
pandoc ---smart --wrap=none --normalize --section-divs --no-highlight ^
--from markdown_github-hard_line_breaks+yaml_metadata_block ^
... to:
pandoc --no-highlight --section-divs ^
--from gfm+smart+yaml_metadata_block ^
... in the following scripts:
-
docs/abracadabra.bat
(no-section-divs
option) -
docs/abracadabra.sh
(no-section-divs
option) -
gh-themes/architect/abracadabra.bat
-
gh-themes/architect/abracadabra.sh
-
gh-themes/cayman/abracadabra.bat
-
gh-themes/cayman/abracadabra.sh
-
gh-themes/dinky/abracadabra.bat
-
gh-themes/dinky/abracadabra.sh
-
gh-themes/global-spell.bat
-
gh-themes/leapday/abracadabra.bat
(no-section-divs
option) -
gh-themes/leapday/abracadabra.sh
(no-section-divs
option) -
gh-themes/merlot/abracadabra.bat
-
gh-themes/merlot/abracadabra.sh
pandoc --wrap=none -f gfm+smart -t gfm -o "%~1" "%~1"
I must decide if keep using HLJS or use pandoc highlighter instead.
If I keep HLJS locally I must update all the local prebuilds; else I can link to the online version.
If I choose to use pandoc's highlighter, I'll need to make SASS highlight theme for all GH Themes.
- Update HLJS prebuilt packages: Version
9.12.0
(2017-05-30) -
README.md
: update HLJS version referenced -
README.md
: update HLJS number of supported langs
Now that pandoc v2 is supported, I should update all the themes to support more styles via the new DIV syntax. Basically, I'll need to add some CSS to support:
- GFM Alerts
- Keystrokes
- etc
For this I should integrate SASS versions of the GH Themes, and tweak them. Some Themes already have SASS sources, others don't; so, for those who don't I'll need to port their CSS to SCSS.