Using Markdown as HTML

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • showdown

    A bidirectional Markdown to HTML to Markdown converter written in Javascript

  • I had an idea a while ago. Instead of dealing with two sets of files, why not make a file that was Markdown and HTML at the same time?

    I found this utility, which unfortunately seems to have been abandoned: https://github.com/showdownjs/showdown

    All you need to do is add a few lines to the top of your Markdown file. Here's an example:

    https://trivialcode.com/mdhtml_demo/demo.mdhtml

    Take a look at the source of the .mdhtml file and you'll see what I mean.

    If you're taking notes in Markdown this might make things a bit easier to keep organized. No need to update anything if you're exporting to HTML.

    Thoughts? Is this a good idea? A bad one? I also wondered if generating Markdown via a web server and then converting it on the fly like this would be an interesting exercise. Seems like it'd be simpler than generating HTML.

    I use Vim, so I've put this in my vimrc for editing:

    autocmd BufNewFile,BufRead *.mdhtml set syntax=markdown

    First time posting here. Let me know what you guys think.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts