[Widget] Markdown Preview #4172
Replies: 4 comments 7 replies
-
It's a legendary enhancement for Markdown support. |
Beta Was this translation helpful? Give feedback.
-
The code highlight works great! |
Beta Was this translation helpful? Give feedback.
-
Dropping this here for anyone that may be interested in markdown-related stuff: I'm working on a new plugin/widget... 4PRLrkAgjI.mp4 |
Beta Was this translation helpful? Give feedback.
-
The widget is amazing! It makes Trilium has more possibility. But there is a bug: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trilium-MarkdownPreview - Link
A widget for Trilium Notes for live previewing markdown files with support for anchors, images, and sync scroll.
Why?
I know Trilium isn't a markdown editor, but I still use markdown for other things like my GitHub READMEs and I like storing everything in one place--Trilium. The only problem was, I couldn't preview my markdown files, and that's super helpful to have before I go pushing a commit. After looking, I couldn't find an existing widget for it, so I decided to make my own.
Preview
Features
Installation
JS Frontend
type. Copy and paste widget.js into the note.#widget
attribute to the noteCSS
type and fill it with any global markdown styles.Syntax Highlighting (optional)
If you want your codeblocks to have syntax highlighting, follow these steps:
Usage
Create a code note with markdown type. Then, to make a note previewable, simply add the
#markdownPreview
attribute to it. (You may have to switch notes afterward for the preview to appear.)After that, just start writing in markdown on the code editor side. You'll see the preview update with you as you go.
More Info
For more information on usage configuration, or to see some demo videos, go checkout the repository on GitHub.
Beta Was this translation helpful? Give feedback.
All reactions