* New underline element @ 2020-07-09 16:03 Denis Maier [not found] ` <3823b0a5-3d0b-7c66-b30c-8dbc2bac85a3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Denis Maier @ 2020-07-09 16:03 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hi, the changelog for the new version mentions a new underline element. How can that be used? I need to convert docx via markdown to jats xml. The docx files sometimes use underline *and* italics, so it would be great if both could be converted. Best, Denis ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <3823b0a5-3d0b-7c66-b30c-8dbc2bac85a3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: New underline element [not found] ` <3823b0a5-3d0b-7c66-b30c-8dbc2bac85a3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2020-07-09 18:18 ` Albert Krewinkel [not found] ` <871rlkmu1f.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Albert Krewinkel @ 2020-07-09 18:18 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Denis Maier writes: > the changelog for the new version mentions a new underline element. How can that > be used? > I need to convert docx via markdown to jats xml. The docx files sometimes use > underline *and* italics, so it would be great if both could be converted. If you use pandoc 2.10, then everything should just work. Markdown has no syntax for underlines, so underlined text is marked as a span with class `.ul` or `.underline`. JATS output uses the `<underline>` element. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <871rlkmu1f.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>]
* Re: New underline element [not found] ` <871rlkmu1f.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> @ 2020-07-09 22:12 ` Denis Maier [not found] ` <16b40fdc-0849-118d-1f4f-5fcb82e6cb02-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Denis Maier @ 2020-07-09 22:12 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Am 09.07.2020 um 20:18 schrieb Albert Krewinkel: > Denis Maier writes: > >> the changelog for the new version mentions a new underline element. How can that >> be used? >> I need to convert docx via markdown to jats xml. The docx files sometimes use >> underline *and* italics, so it would be great if both could be converted. > If you use pandoc 2.10, then everything should just work. Markdown has > no syntax for underlines, so underlined text is marked as a span with > class `.ul` or `.underline`. JATS output uses the `<underline>` element Thank you. That sounds great. I've just updated to 2.10. Will test tomorrow... ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <16b40fdc-0849-118d-1f4f-5fcb82e6cb02-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>]
* Re: New underline element [not found] ` <16b40fdc-0849-118d-1f4f-5fcb82e6cb02-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> @ 2020-10-04 18:30 ` EBkysko [not found] ` <80c4e602-24d7-435d-9bea-9825aebb35b8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: EBkysko @ 2020-10-04 18:30 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 116 bytes --] A bit late, just to add that I did notice the new undocumented constructor `pandoc.Underline` for the Lua filters. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <80c4e602-24d7-435d-9bea-9825aebb35b8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: New underline element [not found] ` <80c4e602-24d7-435d-9bea-9825aebb35b8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2020-10-04 19:54 ` Albert Krewinkel [not found] ` <878sclpy1d.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Albert Krewinkel @ 2020-10-04 19:54 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw EBkysko writes: > A bit late, just to add that I did notice the new undocumented constructor > `pandoc.Underline` for the Lua filters. Thanks for pointing that out! I'm adding the relevant documentation. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <878sclpy1d.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>]
* Re: New underline element [not found] ` <878sclpy1d.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> @ 2020-10-05 9:22 ` BPJ 0 siblings, 0 replies; 6+ messages in thread From: BPJ @ 2020-10-05 9:22 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 1516 bytes --] I guess this would be a useful filter: ``````lua function Strikeout (so) return pandoc.Underline(so.content) end `````` FWIW I've been using the same trick to get small caps for a long time. -- Better --help|less than helpless Den sön 4 okt. 2020 21:55Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> skrev: > EBkysko writes: > > > A bit late, just to add that I did notice the new undocumented > constructor > > `pandoc.Underline` for the Lua filters. > > Thanks for pointing that out! I'm adding the relevant documentation. > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > -- > 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/878sclpy1d.fsf%40zeitkraut.de > . > -- 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/CADAJKhCFq6ZMWAKcRbdRAHpXYfcx%2Br8DZORF8XTsKARCFq5%3D1Q%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 2586 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-10-05 9:22 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-07-09 16:03 New underline element Denis Maier [not found] ` <3823b0a5-3d0b-7c66-b30c-8dbc2bac85a3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2020-07-09 18:18 ` Albert Krewinkel [not found] ` <871rlkmu1f.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 2020-07-09 22:12 ` Denis Maier [not found] ` <16b40fdc-0849-118d-1f4f-5fcb82e6cb02-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> 2020-10-04 18:30 ` EBkysko [not found] ` <80c4e602-24d7-435d-9bea-9825aebb35b8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2020-10-04 19:54 ` Albert Krewinkel [not found] ` <878sclpy1d.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 2020-10-05 9:22 ` BPJ
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).