* List item value attribute
@ 2021-12-06 12:12 Max Cohen
[not found] ` <12e9606c-d441-4365-8316-d5948b10425cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Max Cohen @ 2021-12-06 12:12 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 823 bytes --]
Hello,
When using html as a source, we can get a <li> tag with a value attribute
( https://www.w3schools.com/TAGs/tag_li.asp )
Is there a way to keep this when the output type is epub?
Right now, it looks like the attributes are stripped.
When input is like this:
<ol>
<li>1</li>
<li value="3">3</li>
<li value="4">4</li>
</ol>
the output is like this
<ol>
<li>1</li>
<li>3</li>
<li>4</li>
</ol>
Thanks!
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/12e9606c-d441-4365-8316-d5948b10425cn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1721 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: List item value attribute
[not found] ` <12e9606c-d441-4365-8316-d5948b10425cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-12-06 17:56 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2021-12-06 17:56 UTC (permalink / raw)
To: Max Cohen, pandoc-discuss
No, there is no way to keep this. Conversion from HTML is lossy,
for reasons explained at the beginning of the manual.
Max Cohen <max-F+KgNXBqIBDQT0dZR+AlfA@public.gmane.org> writes:
> Hello,
>
> When using html as a source, we can get a <li> tag with a value attribute
> ( https://www.w3schools.com/TAGs/tag_li.asp )
>
> Is there a way to keep this when the output type is epub?
> Right now, it looks like the attributes are stripped.
> When input is like this:
>
> <ol>
> <li>1</li>
> <li value="3">3</li>
> <li value="4">4</li>
> </ol>
>
> the output is like this
> <ol>
> <li>1</li>
> <li>3</li>
> <li>4</li>
> </ol>
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/12e9606c-d441-4365-8316-d5948b10425cn%40googlegroups.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-06 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 12:12 List item value attribute Max Cohen
[not found] ` <12e9606c-d441-4365-8316-d5948b10425cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-12-06 17:56 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).