emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Syntax discussion] Should we treat src blocks without LANG as parag


From: Max Nikulin
Subject: Re: [Syntax discussion] Should we treat src blocks without LANG as paragraphs? (was: [BUG] ox-html does not export captions of source blocks without language)
Date: Thu, 15 Dec 2022 18:32:04 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 15/12/2022 16:31, Ihor Radchenko wrote:

The actual parser does allow empty lang in src blocks, setting :lang
element property to nil. Should we stop doing this and treat such src
blocks as paragraphs? Or should we allow empty lang and instead adapt
the exporters to treat empty lang correctly?

Source blocks without language may be treated as #+begin_example blocks. I believe, a warning should be issued in such case.

I do not see a reason why caption is not allowed for examples.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]