3 ms·
> I recently blogged about comparing string related functions between Python and Nim: https://scripter.co/notes/string-functions-nim-vs-python/ https://scripter
by mongol 9y ago
> I recently blogged about comparing string related functions between Python and Nim: https://scripter.co/notes/string-functions-nim-vs-python/ https://scripter.co/notes/string-functions-nim-vs-python/
I cannot imagine myself writing (and maintaining) that post in Markdown!
Convincing!
I am curious about the org-source you used for that article, is it public?
- kaushalmodi 9y agoYes, here's the source: - source of that specific post in raw org [1] - site source [2] [1]: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/raw/master/content-org/notes/string-fns-nim-vs-python.org https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/raw/mas... [2]: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io (I wish HN supported some markup :P)
- mongol 9y agoThanks! How did you edit that? As shown? I assumed it included many INCLUDEs?
- kaushalmodi 9y agoThat, I have edited as shown (except the snippet outputs). That was an example of using Org Babel. Note that the #+RESULT blocks in that file are all auto-generated; none hand-written. That post does not have any #+INCLUDE because all the code snippets are trivial. I would use #+INCLUDE in posts where I have a code file, and I want to talk about only few lines from that. I have different examples of #+INCLUDE in my examples file[1] for my Org to Markdown for Hugo exporter -- ox-hugo[2]. There I use the inbuilt INCLUDE feature where I choose to include only the specified Org sub-tree (using the sub-tree CUSTOM_ID). The above referenced post on Nim/Python is converted to Markdown for Hugo using the same exporter. [1]: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/example-site/content-org/all-posts.org https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master... [2]: https://github.com/kaushalmodi/ox-hugo https://github.com/kaushalmodi/ox-hugo