Skip to content

Instantly share code, notes, and snippets.

@simov
Last active April 30, 2024 09:42
Show Gist options
  • Select an option

  • Save simov/ffc7517d7c1a7223b714218d1b01fdd2 to your computer and use it in GitHub Desktop.

Select an option

Save simov/ffc7517d7c1a7223b714218d1b01fdd2 to your computer and use it in GitHub Desktop.
Notes to the reviewer

Markdown Viewer - Third-party Dependencies

Build the themes and vendor folders, and create the markdown-viewer.zip package:

# pick a release tag
git clone --depth 1 --branch firefox https://github.com/simov/markdown-viewer.git
# build
cd markdown-viewer/
sh build/package.sh firefox

Build Dependencies

  • node >= 18
  • npm >= 10
  • git
  • zip

Build Summary

Library Build Strategy Outputs
bootstrap πŸ“„ npm install - copy file - vendor/bootstrap.min.css
markdown-it πŸ“¦ npm install - bundle - minify - vendor/markdown-it.min.js
marked πŸ“¦ npm install - bundle - minify - vendor/marked.min.js
mathjax πŸ“„ npm install - copy files - vendor/mathjax/ (folder)
mdc πŸ“¦ npm install - bundle - minify - vendor/mdc.min.js
- vendor/mdc.min.css
mermaid πŸ“„ npm install - copy file - vendor/mermaid.min.js
mithril πŸ“„ npm install - copy file - vendor/mithril.min.js
prism πŸ“„β— npm install - copy files -
minify .js files - minify .css files -
one .js file modified -
some .css files modified
- vendor/prism.min.js
- vendor/prism-autoloader.min.js❗
- vendor/prism/ (folder)
- vendor/prism.min.css
- vendor/prism-okaidia.min.css
remark πŸ“¦ npm install - bundle - minify - vendor/remark.min.js
themes πŸ“„ npm install - git clone - copy files -
minify .css files - some .css files modified
- themes/ (folder)

bootstrap


markdown-it


marked


mathjax


mdc


mermaid


mithril


prism


remark


themes


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment