A simple but useful markdown previewer with live update.
Download QMarkdownPreviewer.py
and github_markdown_style.py
.
You can fit them into a folder but make sure to keep them together.
Then on the script you want to use the markdown previewer:
- Import it:
from QMarkdownPreviewer import MarkdownPreviewer
- To use it is quite simple:
markdown_previewer = MarkdownPreviewer(path)
markdown_previewer.show()
Where path
is the path of the file to preview.
If you want to see an example, run QMarkdownPreviewer
itself.
PyAPIReference uses a similar code of this markdown highlighter to do this.
See https://github.com/Patitotective/PyAPIReference/blob/main/PyAPIReference/GUI/markdown_previewer.py
Patitotective:
- Discord: patitotective#0127.
- Github: https://github.com/Patitotective
- Email: cristobalriaga@gmail.com.