-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Summary
Replace the external markdown executable (discount 3.0.0d) with the cmark Lua module to reduce external dependencies.
Current Implementation
The codebase currently uses a build-time approach:
-
Build rule (
static/md/Tupfile):: foreach *.md |> markdown < %f > %o |> %B.html -
Markdown files in
static/md/:home.mdabout.mdchanges.mdintro.mdsecurity_incident_march_2019.md
-
Views include pre-compiled HTML via
raw_ssihelper inwidgets/helpers.moon
Plan
Files to Modify
luarocks-site-dev-1.rockspec- Add cmark dependencycmd/render_markdown.moon- New script to render markdown using cmark modulestatic/md/Tupfile- Update build rule to use new script
Benefits
- Removes dependency on external
markdownexecutable - Uses a Lua module that can be managed via LuaRocks
cmarkis the reference implementation for CommonMark, well-maintained by jgm
Tasks
- Add
cmarkto dependencies in rockspec - Create
cmd/render_markdown.moonscript using cmark module - Update
static/md/Tupfileto use new script - Test all pages that render markdown content
Metadata
Metadata
Assignees
Labels
No labels