[Top][All Lists]

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

Re: Question regarding "paragraph" and "p"

From: Michael Vehrs
Subject: Re: Question regarding "paragraph" and "p"
Date: Sun, 3 Jan 2021 10:23:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 1/2/21 1:20 PM, Michael Vehrs wrote:
I am experimenting with a plain text engine. I defined a markup writer
for the paragraph element, adding an extra keyword. This shows up fine
in a paragraph element, but not in a "p" element. So I defined a
markup-writer for "p" explicitly, but it still doesn't work. Can someone
explain what is going on here?



As far as I can tell, this definition from package/base.scm means that p
will only ever call paragraph with the minimum arguments, making it
impossible to extend p:

(define-markup (p :rest opt :key ident (class #f))
   (paragraph :ident ident :class class :loc &invocation-location
      (the-body opt)))

I would consider this a bug. I think it would be better to define p in
the usual way, and to extend markup-writer to handle a list of markup



reply via email to

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