DEV Community

Cover image for ๐Ÿš€ Introducing Markdown Viewer v2.0
Baivab Sarkar
Baivab Sarkar

Posted on

๐Ÿš€ Introducing Markdown Viewer v2.0

A complete overhaul of your favorite Markdown tool โ€” now with more power, better design, and features developers will love.


Markdown has become indispensable for developers, writers, and teams alike. After a year of feedback and iteration, Markdown Viewer is here to elevate your Markdown experienceโ€”delivering a professional, GitHub-style editor and previewer thatโ€™s as powerful as it is intuitive.

Letโ€™s take a look at whatโ€™s new!


โœจ Whatโ€™s New?

Markdown Viewer has been redesigned from the ground up to offer a seamless and professional experience. Below are the key features and enhancements added in this major update.


๐Ÿ” GitHub-Style Markdown Rendering

See exactly how your Markdown would look on GitHub. From headings and tables to task lists and emoji shortcodes, the rendering engine closely mirrors GitHubโ€™s own Markdown parser โ€” perfect for developers and open-source contributors.

GitHub-style rendering


โšก Live Preview with Sync Scrolling

The dual-pane interface gives you a live HTML preview as you type. And with sync scrolling, your editor and preview stay perfectly aligned โ€” making writing and proofreading incredibly smooth.


๐ŸŽจ Dark Mode Toggle

Whether youโ€™re coding at midnight or just love a sleek interface, the built-in dark mode has you covered. Toggle between light and dark themes anytime with a single click.


๐Ÿ“Š Content Statistics

Keep track of your writing with word count, character count, and estimated reading time. Great for content creators, bloggers, and technical writers who want to meet specific writing goals.

Statistics


๐Ÿง  LaTeX Math Support

For academics, scientists, and engineers โ€” Markdown Viewer now supports LaTeX-style math expressions using MathJax. Both inline and block-level equations are rendered beautifully.

Inline equation: $$E = mc^2$$

Display equations:
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$

$$\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$

$$\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}$$
Enter fullscreen mode Exit fullscreen mode

Math support


๐Ÿงพ Mermaid Diagrams

Markdown Viewer integrates Mermaid.js for generating flowcharts, sequence diagrams, Gantt charts, and more โ€” directly inside your Markdown.

flowchart LR
    A[Start] --> B{Is it working?}
    B -->|Yes| C[Great!]
    B -->|No| D[Debug]
    C --> E[Deploy]
    D --> B
Enter fullscreen mode Exit fullscreen mode

Mermaid


๐Ÿ“ฅ Import & ๐Ÿ“ค Export Options

Now you can:

  • Import .md files via drag & drop or file picker
  • Export your content as:
    • Markdown (.md)
    • HTML (.html)
    • PDF (.pdf)

Itโ€™s fast, secure, and 100% client-side โ€” no data leaves your browser.

Import & Export Options


๐Ÿ”  Syntax Highlighting for Code Blocks

Code blocks are rendered with beautiful, multi-language syntax highlighting powered by highlight.js. Your technical documentation will look as sharp as your code.

  function renderMarkdown() {
    const markdown = markdownEditor.value;
    const html = marked.parse(markdown);
    const sanitizedHtml = DOMPurify.sanitize(html);
    markdownPreview.innerHTML = sanitizedHtml;

    // Apply syntax highlighting to code blocks
    markdownPreview.querySelectorAll('pre code').forEach((block) => {
        hljs.highlightElement(block);
    });
  }
Enter fullscreen mode Exit fullscreen mode

Code Blocks


๐Ÿ˜Š Emoji Support

Write with personality! Emoji shortcodes like :sparkles: or :rocket: are automatically converted into visual emojis using JoyPixels.

:sparkles: Welcome to Markdown Viewer! :rocket:
Enter fullscreen mode Exit fullscreen mode

Emoji Support


๐Ÿ’ป Tech Stack Overview

  • Frontend: HTML5, CSS3, JavaScript, Bootstrap
  • Libraries:

    • marked.js - Markdown parsing
    • highlight.js - Code syntax highlighting
    • MathJax - LaTeX rendering
    • Mermaid.js - Diagram rendering
    • html2canvas.js + jsPDF - PDF generation
    • DOMPurify - HTML sanitization
    • JoyPixels - Emoji parsing
    • FileSaver.js - File Handling

๐Ÿงช How to Try It Out

Getting started with Markdown Viewer is super simple:

git clone https://github.com/ThisIs-Developer/Markdown-Viewer.git
cd Markdown-Viewer
Enter fullscreen mode Exit fullscreen mode

Then open index.html in your browser โ€” no installation required!

Or skip all that and try the Live Demo now!


๐Ÿ“ˆ A Look Back: The Evolution of Markdown Viewer

From basic previewer to fully-featured editor.

This journey started with a minimal editor. Over time, through iteration, feedback, and a passion for improvement, Markdown Viewer has become a powerful writing and visualization tool.

Compare it yourself:
๐ŸŽฏ Current version: markdownviewer.pages.dev
๐Ÿ•ฐ๏ธ Original version: v1 demo


๐Ÿ™Œ Final Thoughts

Whether you're a student, developer, blogger, or technical writer, Markdown Viewer v2.0 is built to support your workflow โ€” fast, flexible, and fully featured.

If you find this project useful, donโ€™t forget to:

  • โญ Star it on GitHub: ThisIs-Developer/Markdown-Viewer
  • ๐Ÿ—ฃ๏ธ Share it with your network
  • ๐Ÿ’ฌ Drop your feedback or feature suggestions in the comments!

Thanks for reading, and happy writing in Markdown!๐Ÿ“โœจ

Top comments (0)