Skip to content

Commit

Permalink
md: use comrak instead of pandoc
Browse files Browse the repository at this point in the history
comrak renders the markdown about 10x faster than pandoc
  • Loading branch information
tmfink committed Apr 18, 2024
1 parent 484733e commit 3c0f156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 285 deletions.
8 changes: 3 additions & 5 deletions scripts/build_readme.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
#
# Builds README.md as html with GitHub style
# tested with pandoc 2.1.1
# tested with comrak 0.19.0

set -eux

Expand All @@ -16,10 +16,8 @@ build() {
return
fi

pandoc \
-f gfm -t html5 \
--css scripts/github-md.css -Vpagetitle="${INPUT_MD}" \
--standalone \
comrak \
--gfm \
"$INPUT_MD" -o "$OUTPUT_HTML"
}

Expand Down
280 changes: 0 additions & 280 deletions scripts/github-md.css

This file was deleted.

0 comments on commit 3c0f156

Please sign in to comment.