this post was submitted on 22 Mar 2024
5 points (85.7% liked)

Markdown

55 readers
7 users here now

A community to discuss on the markup language and its different flavors (Markdown, CommonMark, MultiMarkdown, GfM and likely more), as well sharing utilities, editors, converters, and knowledge.

founded 1 year ago
MODERATORS
mp3
5
Markdeep (casual-effects.com)
submitted 1 year ago by mp3 to c/markdown
 

Description

It allows you to use an existing Markdown document, and make it pretty and viewable with formatting straight out of the box straight in a web browser, no fancy viewer or convertion required.

How to use it

Simply place the following string at the bottom of your .md file

<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://morgan3d.github.io/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>

and then append .html to the file extension (ex: file.md.html)

You can them open it with any web browser and view it with a table of content, clickable links, etc.

Why ?

It makes it quite simple to deploy as a static HTML file, and you can leverage the Markdown syntax for its readability if you need to edit it.

License

BSD-2-Clause

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 3 months ago (1 children)

That's cool! Any way to customize how it displays? I have been looking for something like this that can format md as a reveal js presentation.

[โ€“] mp3 1 points 3 months ago

Maybe with some extra CSS or JS, never ventured on the presentation side of things.