Razen04/sht: Takes a string filled with HTML, LaTeX and Markdown and returns an HTML string.
github.com·2d·
Discuss: r/opensource
🦗Pest
Preview
Report Post

SHT: Syntax Hybrid Transpiler in C++

This is a custom Recursive Descent Parser I wrote in C++ to handle a specific subset of Markdown for GATEQuest.

Basically, I needed something that could handle mixed content like Markdown, LaTeX math equations (like $E=mc^2$), tables, and code blocks—without breaking all in one string as I scraped everything for GateOverflow site so the output was mixed with different grammar. Initially for GATEQuest, I just asked an AI to write the parser to render content cause that wasn’t something I wanted to focus at that time but I wanted to see if I could build a proper transpiler engine from scratch(obviously with the help of AI guidance) in C++, something which I can own instead of the JS parser made by t…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help