November 2, 2025 at 1:29 PM, "Ihor Radchenko" <[email protected] mailto:[email protected]?to=%22Ihor%20Radchenko%22%20%3Cyantar92%40posteo.net%3E > wrote:
> > [email protected] mailto:[email protected] writes: > > > > > I've been wanting to use org-mode with haunt (1) for a long time. I > > just recently started using a VERY SIMPLE WIP ox-commonmark.el (2) > > that seems to work for me. Commonmark is a specified markdown > > (https://commonmark.org/). It probably needs more work before it can > > be included into org...But when I'm daily using it for my blog, may I > > submit it as a patch for inclusion and get some feedback? > > > I think that would make sense. We traditionally support vanilla > markdown, but it is not very useful in many cases, especially since many > actively used markdown flavors are very restrictive about using direct > html fragments inside. > > That said, your links are to private repository, so I have no idea about > the actual code you are talking about. That is my mistake: https://git.sr.ht/~gnucode/ox-commonmark > > > > I also found some code online that lets you export shell code like so (3): > > > > #+BEGIN_SRC shell :dir /ssh:[email protected]:~/prog/gnu/guile/gnucode.org > > haunt build > > #+END_SRC > > > > In the html export, the above would look like: > > > > <pre> > > <code> > > [email protected]:~/prog/gnu/guile/gnucode.org $ haunt build > > </code> > > </pre> > > > > I've just started using the above in my blog. I'm sure there are some bugs > > to work out, but is there any interest in adding this feature to org-export > > ? Perhaps org could define "org-export-insert-shell-prompt" and allow users > > to use it via: > > > > (add-hook 'org-export-before-parsing-functions > > #'org-export-insert-shell-prompt) > > > Again, I cannot see the code, but I am not sure here - this is very > specialized feature just for shell blocks. > > We kind of have a similar feature via noweb references: I'll have to take a look at said feature. Thanks! > #+name: actual_bloc > #+begin_src shell :exports none > haunt build > ls > #+end_src > > #+begin_src sell :noweb yes > [email protected]:~/prog/gnu/guile/gnucode.org $ <<actual_bloc>> > #+end_src > > is equivalent to > > #+begin_src sell :noweb yes > [email protected]:~/prog/gnu/guile/gnucode.org $ haunt build > [email protected]:~/prog/gnu/guile/gnucode.org $ ls > #+end_src > > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at <https://orgmode.org/> https://orgmode.org/%3E . > Support Org development at <https://liberapay.com/org-mode>, > https://liberapay.com/org-mode%3E, > or support my work at <https://liberapay.com/yantar92> > https://liberapay.com/yantar92%3E >
