[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tricking org-mode into using markdown conventions
From: |
Diego Zamboni |
Subject: |
Re: Tricking org-mode into using markdown conventions |
Date: |
Sun, 3 May 2020 18:39:13 +0200 |
Hi Daryl,
If it's for display purposes only, you might be able to simply use
display substitutions for things to appear the way you want. For
example, I use the technique described here:
https://pank.eu/blog/pretty-babel-src-blocks.html to replace the
begin/end_src strings with symbols. I did a quick test, and it seems
that =prettify-symbols-alist= (which is what this code uses) can only
replace for a single character, so I was not able to make it display
the three backticks, but there might be other techniques that can be
used.
--Diego
On Sun, May 3, 2020 at 6:24 PM Daryl Manning <address@hidden> wrote:
>
> While using C-c C-, is easy enough for insertion and such, I was wondering if
> there was any way of having org-mode honour markdown conventions for things
> like code fences and quotes.
>
> ``` elisp
> #+begin_src
> #+end_src
>
> #+begin_quote
> #+end_quote
> ```
>
> being a bit nicer to read with
>
> ``` go
> code block
> ```
> as well as
>
> > And gentlemen in England now-a-bed.
> > Shall think themselves accurs'd they were not here,
> > And hold their manhoods cheap whiles any speaks.
> > That fought with us upon Saint Crispin's day.
>
> Just curious as to whether that's possible. YMMV before you start debating on
> whether you think this is a good idea or not... =]
>
> Of course, I'd want the code highlighting especially to work that way,
> though... =] Less concerned with whether it works in export modes for the
> moment, more about display atm.
>
> thanks!
> Daryl.
>
>
>
>
>
- Tricking org-mode into using markdown conventions, Daryl Manning, 2020/05/03
- Re: Tricking org-mode into using markdown conventions,
Diego Zamboni <=
- Re: Tricking org-mode into using markdown conventions, Ihor Radchenko, 2020/05/04
- Re: Tricking org-mode into using markdown conventions, Diego Zamboni, 2020/05/04
- Re: Tricking org-mode into using markdown conventions, Daryl Manning, 2020/05/05
- Re: Tricking org-mode into using markdown conventions, Diego Zamboni, 2020/05/05
- Re: Tricking org-mode into using markdown conventions, Ihor Radchenko, 2020/05/05
- Re: Tricking org-mode into using markdown conventions, Berry, Charles, 2020/05/05