From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30818 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emiliano Newsgroups: gmane.text.pandoc Subject: Re: Way to have markdown ==highlighting== show up as highlighting in .docx or .odt files? Date: Thu, 23 Jun 2022 12:45:56 -0700 (PDT) Message-ID: <446cfdd3-cadb-49b0-a5c4-4e45bbad26e2n@googlegroups.com> References: <9995ee8a-295e-1836-5645-9bb5ff76445d@reagle.org> <9d89679a-94dc-2459-822f-93dbe4cbca57@reagle.org> <2cf7ddb7-c135-441c-8758-d780938bb5ffn@googlegroups.com> <489be9a1-e45a-4bee-ab8d-ce83ca7ed292n@googlegroups.com> <3316a007-a142-4d3d-a2f8-40befafb4249n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_820_160456517.1656013556338" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7636"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDM7PRPHYAPRB5MF2OKQMGQEHM45U4A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 23 21:46:01 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f184.google.com ([209.85.128.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o4Sm9-0001lE-AU for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Jun 2022 21:46:01 +0200 Original-Received: by mail-yw1-f184.google.com with SMTP id 00721157ae682-3177608c4a5sf3418167b3.14 for ; Thu, 23 Jun 2022 12:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=BsLS4hslEGnjSJYnm0JmIzwasWQG9cud2fhfqFyyKLc=; b=fsyfgzQjwl5P4guuBBTTynWgk4xVFPg1PAx9dN2slT9WIYz0HmWuvmZhDSd4c5wvUX gkZvlGhEzI8fh8GuDbCao4sDSs7CeYaVAFEJxYK9GmvdATC/IJlc4mykfO6E7cZSB7NW plyK1gGhVszoVYk2gIKeGnA1oxQhQ5lKNuvCrGtonHbrlhPI3dSSmaQAdpbezWgBwYms th7L8z37ha+KPRbSOHCStGTtBvRQ6PESWubdiy/KqE+PwK5zoJ8v/yl3VCJ+eVQVnz/r f+gNFkzEv9z8K/Z4BDSmnpQsGSANV2SgygYsTPx62YBkjqGMa+AIJrD8CKcf+5LM1Y/5 hKrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=BsLS4hslEGnjSJYnm0JmIzwasWQG9cud2fhfqFyyKLc=; b=E0QEre2L224LmmFdev/riElRMGVsj1TQH5jSc/1qSECTPk+yc+f/RG+t/lbY9ogQeW upxqe0Dz1EMCey0rOuuHjE6eYh+8J3jiqp9oYIq7Z7uDFEGfdD/yth43VSH4aEr8q9yR AX+lIUWO2iZFdfhOHs9y1QBPNTQK7AGyQZ7ArS6QJyI8y7ceKBZSYYmb8HQVlTM/VfOE ndl8nLVRzMPfvVJL5mpExZjbcSVUN6BTuoPsrbqK6jg5Llo/mU7YDDde90C20HW0ZTJn ywhakinOR/YU73jUYKuYpA1bPYMfGINf3jDDjjD3TEATTPracOw1WJOVIx/oa35solN+ QbdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=BsLS4hslEGnjSJYnm0JmIzwasWQG9cud2fhfqFyyKLc=; b=FExwTBUdFyEy6MfFDDeIssW0qTz8vou++du144Kta3SvnRDy6zslMOeRLZu+SBQeIw Zy/1WUwIFVaaIYIX4DMKadyrHvyrSFH69oNrZDjseN4K/swC67+Ga7OPDG2dehtE+WPz XFjw1uON5YYNtoCLWX4UExPHEMkSHQHtVNVzwxIJbO3WEwmNODXEOi+g9S9/tTQtr3D1 oL3EoqVPKZKvQa3KNq6ypmxoh+ByoQe3OJsLBDpE2H2rHHTqYy4UJ+4Kr6dZa9o7jiw8 UOtpYG7mMr9jOlgyWH+vzsxI9Td028wUHXVlLBbzyfMT+aodlSaTNxy7lMCzcS9G5sox rSmg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+JCYJlAgq4t5j/NhTumjuQz5mIapewaKTJDVUba4y3TH5JMPOH DyHYjs28WF3eDURPnIOXdg0= X-Google-Smtp-Source: AGRyM1uPeqlVKgxfTbGR1VxtGA4B0Ny0p7b6Zno83TM0nBePB2l1gssNzmrWPiQFh2ALN2hcFpgVCg== X-Received: by 2002:a25:d612:0:b0:669:b4e1:30ba with SMTP id n18-20020a25d612000000b00669b4e130bamr3092499ybg.266.1656013560219; Thu, 23 Jun 2022 12:46:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:83c7:0:b0:318:317e:b4e5 with SMTP id t190-20020a8183c7000000b00318317eb4e5ls3816674ywf.1.gmail; Thu, 23 Jun 2022 12:45:57 -0700 (PDT) X-Received: by 2002:a05:690c:89:b0:2d7:fb7d:db7 with SMTP id be9-20020a05690c008900b002d7fb7d0db7mr13626486ywb.219.1656013556998; Thu, 23 Jun 2022 12:45:56 -0700 (PDT) In-Reply-To: X-Original-Sender: gattulli.emiliano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30818 Archived-At: ------=_Part_820_160456517.1656013556338 Content-Type: multipart/alternative; boundary="----=_Part_821_998286380.1656013556338" ------=_Part_821_998286380.1656013556338 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! Il giorno gioved=C3=AC 23 giugno 2022 alle 21:07:01 UTC+2 BPJ ha scritto: > It would be possible but it would be rather fragile and finicky because= =20 > you would have to=20 > > 1. traverse lists of inline elements, > 2. locate string elements which contain "=3D=3D", > 3. split that strings into the bit before and after "=3D=3D", > 4. insert the right raw markup for the output format in place of "=3D=3D= " > 5. collect elements up to the next string element which contains "=3D=3D= ", > 6. Redo #3 and #4 with that string, > 7. Throw an error if #5 fails! > > You are probably better off replacing the `=3D=3D...=3D=3D` in your exist= ing files=20 > using the attached Perl script. It is a modification of a script which I= =20 > have used to convert `_..._` and the like to spans. It uses regexes, but = is=20 > smart enough to leave block and inline code and math as well as "=3D=3D" = in=20 > contexts were it probably isn't a delimiter alone. Make sure to check out= =20 > the -h and -m options for documentation > > > > Den tors 23 juni 2022 13:15Emiliano skrev: > >> BPJ, is it possible to create a lua filter that does the same thing but= =20 >> it converts Obsidian syntax '=3D=3D =3D=3D' into a highlighted text? I h= ave tons of=20 >> notes written in Obsidian syntax and it would be an enormous task to mod= ify=20 >> all of them with the 'new' syntax. By the way, your lua filter works=20 >> perfectly! >> >> Il giorno mercoled=C3=AC 22 giugno 2022 alle 19:45:07 UTC+2 BPJ ha scrit= to: >> >>> According to the principle that it's better to find out what you can do= =20 >>> with the tools you have you can use a span with a class, like `[text]{.= hl}`=20 >>> and use a simple filter to convert that to Obsidian's syntax when=20 >>> processing with Obsidian, by choosing `markdown` as output format, or= =20 >>> insert the necessary LaTeX markup when producing PDF (or arrange for th= e=20 >>> necessary CSS to be loaded if producing PDF via HTML.) >>> >>> ``````lua >>> local eq_hl =3D pandoc.RawInline('markdown', '=3D=3D') >>> >>> local highlight =3D { >>> markdown =3D { start =3D eq_hl, stop =3D eq_hl }, >>> latex =3D { >>> start =3D pandoc.RawInline('latex', '\\colorbox[named]{yellow}{'), >>> stop =3D pandoc.RawInline('latex', '}'), >>> }, >>> } >>> >>> local hl =3D highlight[FORMAT] >>> >>> function Span (s) >>> if s.classes:includes('hl') then >>> if hl then >>> rv =3D s.content >>> rv:insert(1, hl.start) >>> rv:insert(hl.stop) >>> return rv >>> end >>> end >>> return nil >>> end >>> `````` >>> >>> I'm not sure that the default LaTeX template always loads the xcolor=20 >>> package. You may need a modifier template. >>> >>> I can imagine you lose some in-editor preview, but you get reasonable= =20 >>> output. >>> >>> HTH, >>> >>> /bpj >>> >>> Den ons 22 juni 2022 16:11Emiliano skrev: >>> >>>> Well, if you export in PDF through Obsidian the highlighted text is=20 >>>> rendered correctly but not if you use Pandoc. I do not export in PDF= =20 >>>> through Obsidian because then I would be bound to the style of the act= ive=20 >>>> theme, namely, I would see the PDF file with a black background (I use= the=20 >>>> Dark Mode), font size, spacing, margins, etc. of Obsidian's active the= me. >>>> >>>> Il giorno marted=C3=AC 21 giugno 2022 alle 18:44:42 UTC+2=20 >>>> paulschi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org ha scritto: >>>> >>>>> Good question! Thanks for reminding me of this. But exporting to PDF= =20 >>>>> in Obsidian with highlights should work automatically, no? >>>>> >>>>> On Tuesday, June 21, 2022 at 3:21:03 p.m. UTC+2 Emiliano wrote: >>>>> >>>>>> Any news about this feature for Pandoc? I use a lot the highlight=20 >>>>>> syntax ('=3D=3D =3D=3D') in Obsidian and it would be great if I coul= d render my=20 >>>>>> highlighted text in PDF (also in DOCX and ODT). >>>>>> >>>>>> Il giorno domenica 2 gennaio 2022 alle 17:52:44 UTC+1 Alx Nbl ha=20 >>>>>> scritto: >>>>>> >>>>>>> My use case is different from paulschi, in my case i am trying to= =20 >>>>>>> convert docx into markdown and generating '=3D=3D =3D=3D' syntax wh= en there is=20 >>>>>>> higlighted text in the docx file. >>>>>>> >>>>>>> On Sunday, January 2, 2022 at 3:09:42 PM UTC+1 Alx Nbl wrote: >>>>>>> >>>>>>>> Hi all. The '=3D=3D =3D=3D' syntax is also used by Joplin app. I w= ould also=20 >>>>>>>> be very interested by such a feature. >>>>>>>> >>>>>>>> On Thursday, December 9, 2021 at 6:29:51 PM UTC+1 John MacFarlane= =20 >>>>>>>> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> On CriticMarkup, see=20 >>>>>>>>> >>>>>>>>> https://github.com/jgm/pandoc/issues/2873=20 >>>>>>>>> https://github.com/jgm/pandoc/issues/5430=20 >>>>>>>>> >>>>>>>>> >>>>>>>>> Joseph Reagle writes:=20 >>>>>>>>> >>>>>>>>> > BTW: If CommonMark or pandoc were to support highlight, I would= =20 >>>>>>>>> then wonder why not support all of CriticMarkup, which supports h= ighlight=20 >>>>>>>>> as `{=3D=3D =3D=3D}` or `{>> <<}`. (It's a shame that we have two= different=20 >>>>>>>>> syntaxes emerging for highlight.)=20 >>>>>>>>> >=20 >>>>>>>>> > On 21-12-09 11:10, John MacFarlane wrote:=20 >>>>>>>>> >>=20 >>>>>>>>> >> If this is a syntax that is becoming common, we could consider= =20 >>>>>>>>> >> adding a markdown extension for it. You could open an issue on= =20 >>>>>>>>> >> our issue tracker.=20 >>>>>>>>> >>=20 >>>>>>>>> >> Joseph Reagle writes:=20 >>>>>>>>> >>=20 >>>>>>>>> >>> This is the first time I've encountered [this syntax][1] and= =20 >>>>>>>>> it is not natively supported by pandoc. Or am I wrong and you are= saying=20 >>>>>>>>> pandoc handles it when using the latex/PDF writer? (Or, are you s= aying=20 >>>>>>>>> Obsidian can export to PDF, but not Word?)=20 >>>>>>>>> >>>=20 >>>>>>>>> >>> I see there's been some discussion on the [CommonMark=20 >>>>>>>>> forum][2], but it doesn't look like you'd find an immediate solut= ion.=20 >>>>>>>>> >>>=20 >>>>>>>>> >>> Using a filter or hacking something that converts `=3D=3Dfoo= =3D=3D` to=20 >>>>>>>>> [foo]{.highlight} that is properly rendered in Word might be opti= ons.=20 >>>>>>>>> >>>=20 >>>>>>>>> >>> [1]: https://www.markdownguide.org/extended-syntax/#highlight= =20 >>>>>>>>> >>> [2]:=20 >>>>>>>>> https://talk.commonmark.org/t/highlighting-text-with-the-mark-ele= ment/840=20 >>>>>>>>> >>>=20 >>>>>>>>> >>> On 21-12-09 08:29, Paul wrote:=20 >>>>>>>>> >>>> I use a lot of highlighting in my markdown editor Obsidian,= =20 >>>>>>>>> but I was wondering if there's a way to have that highlighting sh= ow up in=20 >>>>>>>>> the Word or Libreoffice Writer files?=20 >>>>>>>>> >>>>=20 >>>>>>>>> >>>> Bold and italics work fine, as far as I can tell, and when= =20 >>>>>>>>> converting to a pdf the highlighting transfers great. I gather, h= owever,=20 >>>>>>>>> that the =3D=3Dhighlighting=3D=3D is not standard in all markdown= so is that the=20 >>>>>>>>> issue?=20 >>>>>>>>> >>>=20 >>>>>>>>> >>> --=20 >>>>>>>>> >>> You received this message because you are subscribed to the= =20 >>>>>>>>> Google Groups "pandoc-discuss" group.=20 >>>>>>>>> >>> To unsubscribe from this group and stop receiving emails from= =20 >>>>>>>>> it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >>>>>>>>> >>> To view this discussion on the web visit=20 >>>>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/9995ee8a-295e-18= 36-5645-9bb5ff76445d%40reagle.org.=20 >>>>>>>>> >>>>>>>>> >>=20 >>>>>>>>> >=20 >>>>>>>>> > --=20 >>>>>>>>> > You received this message because you are subscribed to the=20 >>>>>>>>> Google Groups "pandoc-discuss" group.=20 >>>>>>>>> > To unsubscribe from this group and stop receiving emails from= =20 >>>>>>>>> it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >>>>>>>>> > To view this discussion on the web visit=20 >>>>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/9d89679a-94dc-24= 59-822f-93dbe4cbca57%40reagle.org.=20 >>>>>>>>> >>>>>>>>> >>>>>>>> --=20 >>>> You received this message because you are subscribed to the Google=20 >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> >>> To view this discussion on the web visit=20 >>>> https://groups.google.com/d/msgid/pandoc-discuss/ba18ff15-897d-4a7f-bb= d4-3735da206f1dn%40googlegroups.com=20 >>>> >>>> . >>>> >>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/3316a007-a142-4d3d-a2f8= -40befafb4249n%40googlegroups.com=20 >> >> . >> > --=20 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 e= mail 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/446cfdd3-cadb-49b0-a5c4-4e45bbad26e2n%40googlegroups.com. ------=_Part_821_998286380.1656013556338 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you!

Il giorno gioved=C3=AC 23 giugno 2022 alle 21:07:01 UTC+2 BPJ ha s= critto:
It would be possible but it would be rather fragile and f= inicky because you would have to=C2=A0

1.=C2=A0 traverse lists of inline elements,
2.=C2=A0 locate string elements which contain "=3D=3D",
3.=C2=A0 split that strings into the bit before and after &= quot;=3D=3D",
4.=C2=A0 insert the right raw mar= kup for the output format in place of "=3D=3D"
5.=C2=A0 collect elements up to the next string element which contains= "=3D=3D",
6.=C2=A0 Redo #3 and #4 with th= at string,
7.=C2=A0 Throw an error if #5 fails!

You are probably better off = replacing the `=3D=3D...=3D=3D` in your existing files using the attached P= erl script. It is a modification of a script which I have used to convert `= _..._` and the like to spans. It uses regexes, but is smart enough to leave= block and inline code and math as well as "=3D=3D" in contexts w= ere it probably isn't a delimiter alone. Make sure to check out the -h = and -m options for documentation



<= div class=3D"gmail_quote">
Den tors 23 juni 2= 022 13:15Emiliano <gattulli...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
BP= J, is it possible to create a lua filter that does the same thing but it co= nverts Obsidian syntax '=3D=3D =3D=3D' into a highlighted text? I h= ave tons of notes written in Obsidian syntax and it would be an enormous ta= sk to modify all of them with the 'new' syntax. By the way, your lu= a filter works perfectly!

Il giorno mercoled=C3=AC 22 giugno 2022 alle 19:45:= 07 UTC+2 BPJ ha scritto:
According to the principle that it's better to f= ind out what you can do with the tools you have you can use a span with a c= lass, like `[text]{.hl}` and use a simple filter to convert that to Obsidia= n's syntax when processing with Obsidian, by choosing `markdown` as out= put format, or insert the necessary LaTeX markup when producing PDF (or arr= ange for the necessary CSS to be loaded if producing PDF via HTML.)

``````lua
loca= l eq_hl =3D pandoc.RawInline('markdown', '=3D=3D')

local highlight =3D {
=C2=A0 markdown =3D { start =3D eq_hl, stop =3D eq_hl },
=
=C2=A0 latex =3D {
=C2=A0 =C2=A0 s= tart =3D pandoc.RawInline('latex', '\\colorbox[named]{yellow}{&= #39;),
=C2=A0 =C2=A0 stop =3D pandoc.RawInline('= latex', '}'),
=C2=A0 },
}

local hl =3D hi= ghlight[FORMAT]

function= Span (s)
=C2=A0 if s.classes:includes('hl')= then
=C2=A0 =C2=A0 if hl then
=C2=A0 =C2=A0 =C2=A0 rv =3D s.content
=C2=A0 =C2= =A0 =C2=A0 rv:insert(1, hl.start)
=C2=A0 =C2=A0 =C2= =A0 rv:insert(hl.stop)
=C2=A0 =C2=A0 =C2=A0 return r= v
=C2=A0 =C2=A0 end
=C2=A0 en= d
=C2=A0 return nil
end
=
``````

I'm not sure that the default LaTeX template always loads the xcolor p= ackage. You may need a modifier template.

=
I can imagine you lose some in-editor preview, but you ge= t reasonable output.

HTH= ,

/bpj

Den ons 22 juni 2022 16:11Emiliano <gattulli...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Well, if you = export in PDF through Obsidian the highlighted text is rendered correctly b= ut not if you use Pandoc. I do not export in PDF through Obsidian because t= hen I would be bound to the style of the active theme, namely, I would see = the PDF file with a black background (I use the Dark Mode), font size, spac= ing, margins, etc. of Obsidian's active theme.

Il giorno marted=C3=AC 21 = giugno 2022 alle 18:44:42 UTC+2 paulschi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org ha scritto:
Good question! Thanks for reminding me of this. = But exporting to PDF in Obsidian with highlights should work automatically,= no?

On Tuesday, June 21, 2022 at 3:21:03 p.m. UTC+2 Emiliano wrote:
Any news about this feature fo= r Pandoc? I use a lot the highlight syntax ('=3D=3D =3D=3D') in Obs= idian and it would be great if I could render my highlighted text in PDF (a= lso in DOCX and ODT).

Il giorno domenica 2 gennaio 2022 alle 17:52:44 UTC+1 A= lx Nbl ha scritto:
My use ca= se is different from=C2=A0paulschi, in my case i am trying to= convert docx into markdown and generating '=3D=3D =3D=3D' syntax w= hen there is higlighted text in the docx file.

On Sunday, January 2, 2= 022 at 3:09:42 PM UTC+1 Alx Nbl wrote:
Hi all. The '=3D=3D =3D=3D' syntax is also used by= Joplin app. I would also be very interested by such a feature.

On Thursday, = December 9, 2021 at 6:29:51 PM UTC+1 John MacFarlane wrote:

On CriticMarkup, see

https://github.com/jgm/pandoc/issues/2873
https://github.com/jgm/pandoc/issues/5430


Joseph Reagle <= josep...-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:

> BTW: If CommonMark or pandoc were to support highlight, I would th= en wonder why not support all of CriticMarkup, which supports highlight as = `{=3D=3D =3D=3D}` or `{>> <<}`. (It's a shame that we have = two different syntaxes emerging for highlight.)
>
> On 21-12-09 11:10, John MacFarlane wrote:
>>=20
>> If this is a syntax that is becoming common, we could consider
>> adding a markdown extension for it. You could open an issue o= n
>> our issue tracker.
>>=20
>> Joseph Reagle <josep...-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:
>>=20
>>> This is the first time I've encountered [this syntax][= 1] and it is not natively supported by pandoc. Or am I wrong and you are sa= ying pandoc handles it when using the latex/PDF writer? (Or, are you saying= Obsidian can export to PDF, but not Word?)
>>>
>>> I see there's been some discussion on the [CommonMark = forum][2], but it doesn't look like you'd find an immediate solutio= n.
>>>
>>> Using a filter or hacking something that converts `=3D=3Df= oo=3D=3D` to [foo]{.highlight} that is properly rendered in Word might be o= ptions.
>>>
>>> [1]: ht= tps://www.markdownguide.org/extended-syntax/#highlight
>>> [2]: https://talk.commonmark.org/t/highlighting-text= -with-the-mark-element/840
>>>
>>> On 21-12-09 08:29, Paul wrote:
>>>> I use a lot of highlighting in my markdown editor Obsi= dian, but I was wondering if there's a way to have that highlighting sh= ow up in the Word or Libreoffice Writer files?
>>>>
>>>> Bold and italics work fine, as far as I can tell, and = when converting to a pdf the highlighting transfers great. I gather, howeve= r, that the =3D=3Dhighlighting=3D=3D is not standard in all markdown so is = that the issue?
>>>
>>> --=20
>>> You received this message because you are subscribed to th= e Google Groups "pandoc-discuss" group.
>>> To unsubscribe from this group and stop receiving emails f= rom it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/9995ee8a-295e-1836-5645-9bb5ff76445d%40reagle.org.
>>=20
>
> --=20
> 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 pando= c-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/9d89679a-94dc-2459-822f-93dbe4cbca57%40reagle.org.
<= /div>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus.= ..@googlegroups.com.
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex"> To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/ba18ff15-897d-4a7f-bbd4-3735da206f1dn%40googlegroups.c= om.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pa= ndoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
https://groups.google.com/d/msgid/pando= c-discuss/3316a007-a142-4d3d-a2f8-40befafb4249n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/446cfdd3-cadb-49b0-a5c4-4e45bbad26e2n%40googlegroups.= com.
------=_Part_821_998286380.1656013556338-- ------=_Part_820_160456517.1656013556338--