5 ms·
Show HN: TeXMe – Create self-rendering Markdown + LaTeX documents
- asimjalis 5y agoIs there something like this that renders markdown to GitHub readme-style HTML?
- vlmutolo 5y agoPandoc + a good HTML template should get you there.
- jjjbokma 5y agoI am not sure how close pandoc comes to your requirements? https://pandoc.org/ https://pandoc.org/
- foob 5y agoThere's an open-source project called grip [1] that can render markdown to HTML that looks almost identical to the GitHub rendering. It can do either live preview or export to HTML. I use it for previewing GitHub READMEs while I edit them, and it does an excellent job for that purpose. [1] https://github.com/joeyespo/grip https://github.com/joeyespo/grip
- offbynull 5y agoI use a CSS [0] to style the rendered output from markdown-it [1]. It works pretty well for me. [0] https://github.com/sindresorhus/github-markdown-css https://github.com/sindresorhus/github-markdown-css [1] https://github.com/markdown-it/markdown-it https://github.com/markdown-it/markdown-it
- deleted 5y ago[deleted]
- mlyle 5y ago"...In practice though, it is not necessary to write verbose code like this. All browsers follow the robustness principle..." I don't quite like this line-- pointing out that others are following the robustness principle, so we needn't bother.
- deleted 5y ago[deleted]
- azalemeth 5y agoOut of curiosity, is there anything modern like the reverse of this project -- write LaTeX (e.g. with a `tufte` documentclass) and end up with a beautiful, similarly rendered webpage?
- leephillips 5y agoNot possible in general (TeX is a programming language), but there are plenty of projects that try to translate a subset of TeX/LaTeX into HTML that sort of approximates what the rendered TeX document looks like. A better approach is to write in Pandoc-flavored markdown and convert to HTML, TeX, etc.
- jimhefferon 5y agoHave a look at TeX4ht: https://tug.org/tex4ht/ https://tug.org/tex4ht/.
- rajandatta 5y agoAn intriguing idea. Very nice. Will study further.
- deleted 5y ago[deleted]
- einpoklum 5y agoSpoiler: No self-rendering; the rendering is by a script sourced at cdn.jsdelivr.net . Thus, for example, no rendering offline, or if that website goes away. But it's a neat trick nonetheless...
- fernly 5y agoDoes the Self-Hosting heading not answer that objection? https://github.com/susam/texme#self-hosting-texme https://github.com/susam/texme#self-hosting-texme
- einpoklum 5y agoNot exactly... it's not that your document will be self-rendering, it's an external script that renders it. It's nice that you can self-host it though.
- fernly 5y agoThat README.md is a model piece of doc. Nice work!