Bu

Built a Markdown to HTML Converter

Hacker News

Built a Markdown to HTML Converter

After two weeks of working on this project of building markdown to HTML converter/ compiler, It's finally done. It's called yamper (a python package). Supports most of the md elements like headings, ordered and unordered lists, code blocks, blockquotes, images and links as well as inline elements like bold, italic, strike-through and gfm emojis . Tables, nested lists, alerts etc. are not supported yet/ Will be working on them now. The package can be used in a different project or simply on command line. Just pass in the path of the md file like this: yamper '../path_to_md'. There is also support for choosing template (currently supports 3- standard-light, standard-dark and plain). The standard templates are pre-styles and code highlighted using prism[.]js cdn. Don't know how it'd be useful to you, but you can also generate tokens from the lexer for your md file. I struggled at building the lexer (actually at designing it) and posted on this r/Compilers. Someone pointed out to the commonmark spec, which made it designing much easier. After that, building the parser and renderer is quite straight forward. Skipped building the AST from the parser and instead directly converted it to HTML, though. For more detailed usage instructions and to explore the code, visit the GitHub repo: https://github.com/useDeep/yamper or just try for yourself using pip install yamper

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
86%86% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: using, code, plain · Missing: mac, agents, macos
53%53% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
47%47% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
45%45% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
30%30% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ma
Markdown 2 HTML converter40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Markdown 2 HTML converter

Hacker News1
Ma
Markdown <-> HTML Converter34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Markdown <-> HTML Converter

Hacker News1
Ma
Markdown to HTML Converter40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Markdown to HTML Converter

Hacker News2
HT
HTML to Markdown – Free HTML to Markdown Online Converter50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

HTML to Markdown – Free HTML to Markdown Online Converter

Hacker News6
Se
Serve markdown and see HTML68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Serve markdown and see HTML

Hacker News3
An
An opinionated markdown-to-HTML tutorial publisher58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An opinionated markdown-to-HTML tutorial publisher

Hacker News7
HT
HTML to Hiccup Converter30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

HTML to Hiccup Converter

Hacker News6
Ws
Ws2markdown, a WordStar to Markdown Converter35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ws2markdown, a WordStar to Markdown Converter

Hacker News3
Wo
Woofmark – Markdown, HTML, and WYSIWYG Editor68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Woofmark – Markdown, HTML, and WYSIWYG Editor

Hacker News28
Wo
Woofmark – Markdown, HTML, and WYSIWYG Editor68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Woofmark – Markdown, HTML, and WYSIWYG Editor

Hacker News3