emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: [PATCH] Markup on same line as text


From: Hrvoje Niksic
Subject: [Orgmode] Re: [PATCH] Markup on same line as text
Date: Sun, 20 Feb 2011 00:49:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Roland Kaufmann <address@hidden> writes:

>> htmlize doesn't operate on the level of syntax-based fontification, it
>> examines the display-related properties attached to buffer text (not
>> necessarily by font-lock) and renders them into the corresponding HTML.
>
> Good point.
>
> And, as you point out, it is probably better to deal with the problem
> by removing the formatting on the newlines (probably right after
> font-lock-fontify-buffer in org-export-format-source-code-or-example)
> in the temporary buffer that is htmlize'd, reducing the chance of any
> unintended consequences.

Yes, tweaking the properties seems preferable to tweaking htmlize itself
for this particular case.

In the future I'd like htmlize to be more extensible about converting
buffer contents to HTML.  Currently it only examines the `face' and
`invisible' properties that Emacs itself uses for display.  But
additional properties could be defined, which htmlize would use to
discern hyperlinks, or to add line highlight markup, to override choice
of style sheet, etc.

> I'll try this approach and see how it turns out (i.e. proposal for
> change in htmlize dropped). Thank you for the feedback!

Thanks for sticking with this.  Please let me know how it works for you.



reply via email to

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