On Tue, May 19, 2026 at 10:00:24PM +0200, Patrice Dumas wrote:
> On Sun, May 10, 2026 at 10:39:38PM +0200, Patrice Dumas wrote:
> > On Wed, Apr 08, 2026 at 09:47:43PM +0100, Gavin Smith wrote:
> > > I'm okay with this.  Does that mean for raw output for EPUB only (e.g.
> > > in the metadata block) , you would use the following?
> > > 
> > > @ifepub
> > > @html
> > > ....
> > > @end html
> > > @end ifepub
> > 
> > It cannot work with a conditional, actually.  Indeed, the conditional is
> > removed when parsing, such that only @html remains after parsing and it
> > is not possible to output something different in HTML metadata and in
> > EPUB metadata.
> > 
> > Therefore I think that it is not possible to avoid adding @epub, that
> > would actually be expanded only when calling a conversion function from
> > epub3.pm.
> 
> Should I proceed?

I did not actually understand the reason why nesting @html in @ifepub
(or nesting @ifebub in @html) would not work.

When you say "metadata", does this mean something different for HTML ouput
and EPUB output?  Is this for the case when @html is nested inside of
@documentinfo for the purpose of outputing inside of <head>?


Reply via email to