mark2jek v1.2.1
Replace markdown syntax with jekyll/html for compatibility
Install
npm install -g mark2jekBasic Usage
format: mark2jek/m2jek inputFile(relative) new=newName(optional). for example:
mark2jek index.md //overwrites input file
m2jek docs/readme.md new=page //output will be docs/page.mdby default all flags are enabled, you can change your preset with the config changer, or specify flags on a single run
interactive config changer:
m2jek setup / configExample of github workflow using this package for automatic gh-pages releases when main/README.md is changed:
custom-electron-prompt/main/.github/workflows/update-github-pages.yml
List Of Commands
version check
mark2jek --versionFlags
You can specify flags when executing a task.(case insensitive)
each flag can have a few variant names, but you can always prepend no to disable the flag (except new= where you have)
(these method always overwrite the flags set in the config)
for example:
mark2jek index.md --raw
mark2jek index.md --noRaw new=pg.md --picsFull list:
--new=FILENAMEornew=FILENAME- creates new file with FILENAME to disable:- with
setjust input nothing likem2jek set new= - in
setupinputdelete/disable/false/no/n/xor just space
- with
--picsor--images- convertto<img src=x>--nestedUrlor--nested- convert[](y)to<a href=y><img src=x></a>--githubRawor--raw- convert github images to raw version--collapsibleor--expand- adds an icon for collapsible content--codeblockor--liquid- replace:```languageName codeblock lines ```with:
{% highlight languageName %} codeblock lines {% endhighlight %}
Config
you can save settings as permanent flags in the config
all the following commands are to be used when not specifying a file to work on
interactive config changer
m2jek setup / configshow all commands (including flags)
m2jek list / helpshow flags
m2jek flagsindividually set flags
m2jek set noCodeblock nested noCollapsible [flags without --]Author
👤 Araxeus
- Github: @Araxeus
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2021 Araxeus. This project is MIT licensed.
Doesn't work if markdown have code blocks without language specified