emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Strange warnings from htmlize.el


From: Ihor Radchenko
Subject: Re: Strange warnings from htmlize.el
Date: Thu, 01 Aug 2024 15:16:42 +0000

Angelo Graziosi <angelo.g0@libero.it> writes:

>> This warning is from Org. It's telling you that you need to install the
>> htmlize package in your new Emacs.
>
> If ORG is in Emacs core and it needs this package, shouldn't the package 
> be in core too?

That's out of our control.
htmlize is not strictly required.  But without htmlize, code in the code
blocks is not colored.

Note that what is now a warning used to be a message.  Now, it is more
visible, which was the reason why this was promoted to warning.

> In any case I have "fixed" this removing the language from #+BEGIN_SRC. 
> For example:
>
> -#+BEGIN_SRC sh
> +#+BEGIN_SRC
>
> which for me is enough.

You can also:
1. Suppress the warning
2. Set `org-html-htmlize-output-type' to nil to tell Org not to try coloring

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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