Marked 2 is a great markdown previewer and it works
really well with GitHub styles.
It does not display GitHub emojis though.
This repo contains a preprocessor to add support for emojis, so you can write
:octocat:
in your code and see an emoji in previewer.
- Download zip file. It contains emojis from GitHub and a preprocessor file.
- In Marked 2 application open "Preferences" -> "Advanced" -> "Preprocessor".
- Check "Enable Custom Preprocessor".
- In "Path" field type in path to
preprocessor.sh
file inside downloaded folder from step 1. - Done.
You can build and download all files yourself.
- Clone the repo.
- Run
build.sh
file. It will download emojis from GitHub and build a preprocessor file. Please note that downloading may take some time. - In Marked 2 application open "Preferences" -> "Advanced" -> "Preprocessor".
- Check "Enable Custom Preprocessor".
- In "Path" field type in path to
preprocessor.sh
file inside the repo. - Done.
- Preprocessor is not smart enough so it will show emojis inside code blocks too.
- Preprocessor uses
sed
command for replacement so it must be present on your computer.