From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30793 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: Wed, 22 Jun 2022 07:10:19 -0700 (PDT) Message-ID: 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> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_628_1137994023.1655907019818" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11499"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDM7PRPHYAPRBTOFZSKQMGQEZACCUWY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 22 16:10:24 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f183.google.com ([209.85.219.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o413o-0002rd-J3 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 22 Jun 2022 16:10:24 +0200 Original-Received: by mail-yb1-f183.google.com with SMTP id n124-20020a25d682000000b00668ca3ee0edsf11133308ybg.21 for ; Wed, 22 Jun 2022 07:10:24 -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=h4gp4X1kuxxEDhtaXrAbo9JmlgZmwts74sgoxYCIQQA=; b=GoUQ96uMIdXEZ1tcXb4cedtGQWmJ96uVet6MlZW9zKlgkwWlWfbZekCPMh4q/0aFa4 aSETErL/EWS3ku59EfnY3BN0MgppZfe0GByjPPWaq2RmxstDb2oYv9P6UhByKSqc9V10 ykXS4p/d2gf5o6hLuiXSUur4Js+beI0JwRYJUwihhhNWPOPfTEb68NtiuESaBxTzmq1U eA9fEN+S/dW4nKDiSbS4EA8ijMDwMAXsHzPehjwjGRRh7IRoCZ4kj/LWGCms05DBEQm+ DEaoOarM1WhjHn650yqyVc4smAvtjVrIf9n8EZAXhPx8TsVnPTXQrf2VWmziBeQWcGLe /kpw== 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=h4gp4X1kuxxEDhtaXrAbo9JmlgZmwts74sgoxYCIQQA=; b=dVINJoAIRbTKWeinoB1oE+2M5rE4welueOB1kgtMe6GQWqT3dX849gOOGE+H6TIsO7 zVHmnWQUNEqoF7hsswlpzj0mzIfbHxiqFUV7+i2fM/Ze0Enm2dWzValTwLhTbKGvABDn DvW2wdDh10K7iFGO/XMmUseiOlpIVqF9QVXIMBbvqJOzPn7bg6pEt7vRFCAZMZeh7vd/ NlqM2HcwvbFtClZbWXQj83AX6Vc/GmuXE755JmFiTDGOIsdct7XnvR8ezExvX/sh6F7Y H+xIuGNS/SN7gu9y0g6e2UkW+cNW9PVXJYQPtNxbo8x0+jnrkIqDsC2+ok5ye59NhPdE 5SwA== 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=h4gp4X1kuxxEDhtaXrAbo9JmlgZmwts74sgoxYCIQQA=; b=fpRRk4r+GtYNS1X/waU9XHZxc+h+tcy92fSWNyxkJfRzM7/Ektt5BFpxbkC6DdR48B y1ZaXM8m3pAV14OpmQhS70gyPY15G2EVP1BrPqW0Zu2T8uv91B+51/1OeF9aK51MQV51 25terMn0EvCiXfrSNkqpnqYfjyAseilziUJRF3JO0DZNHq88a6LQDsXnYo0CAaP2+d5M k9q2WiFDdFoWkFL/LzDH+7mbfllZs/7VRVWubrWOv0VgU/8ZHoQghwUtyLCzN6qhgwh9 eNyfLLs2YXPMJl+q4KQa5W1/MmEfFgfZGvQpxixL1wfp8nLco22RNYCElqO5cPkDk1nN CKSA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9oX8IDIYTTu9OR7x6depst6dHPvflRU05b6EIwTZffqn1s6wGJ cH/bVKTYtjAGHDTmC2XNRg4= X-Google-Smtp-Source: AGRyM1uLD7iO4Fcwesn/ZEliPNArmOynr6+FyR4IOURBV9Mk734mY8BE9daqQI4n6Gx2oyuZLG/B/A== X-Received: by 2002:a0d:e6c8:0:b0:317:8c09:e196 with SMTP id p191-20020a0de6c8000000b003178c09e196mr4395208ywe.265.1655907023570; Wed, 22 Jun 2022 07:10:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6902:154e:b0:668:f7c6:3e6c with SMTP id r14-20020a056902154e00b00668f7c63e6cls6434277ybu.9.gmail; Wed, 22 Jun 2022 07:10:20 -0700 (PDT) X-Received: by 2002:a25:dbcf:0:b0:669:c8:b90a with SMTP id g198-20020a25dbcf000000b0066900c8b90amr3878102ybf.406.1655907020325; Wed, 22 Jun 2022 07:10:20 -0700 (PDT) In-Reply-To: <489be9a1-e45a-4bee-ab8d-ce83ca7ed292n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:30793 Archived-At: ------=_Part_628_1137994023.1655907019818 Content-Type: multipart/alternative; boundary="----=_Part_629_2139150186.1655907019818" ------=_Part_629_2139150186.1655907019818 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 active= =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 theme. Il giorno marted=C3=AC 21 giugno 2022 alle 18:44:42 UTC+2 paulschi...@gmail= .com=20 ha scritto: > Good question! Thanks for reminding me of this. But exporting to PDF in= =20 > 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 syntax= =20 >> ('=3D=3D =3D=3D') in Obsidian and it would be great if I could 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 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 when t= here 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 would= also be=20 >>>> very interested by such a feature. >>>> >>>> On Thursday, December 9, 2021 at 6:29:51 PM UTC+1 John MacFarlane wrot= e: >>>> >>>>> >>>>> 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 the= n=20 >>>>> wonder why not support all of CriticMarkup, which supports highlight = as=20 >>>>> `{=3D=3D =3D=3D}` or `{>> <<}`. (It's a shame that we have two differ= ent syntaxes=20 >>>>> 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 it i= s=20 >>>>> not natively supported by pandoc. Or am I wrong and you are saying pa= ndoc=20 >>>>> handles it when using the latex/PDF writer? (Or, are you saying Obsid= ian=20 >>>>> can export to PDF, but not Word?)=20 >>>>> >>>=20 >>>>> >>> I see there's been some discussion on the [CommonMark forum][2],= =20 >>>>> but it doesn't look like you'd find an immediate solution.=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 options.= =20 >>>>> >>>=20 >>>>> >>> [1]: https://www.markdownguide.org/extended-syntax/#highlight=20 >>>>> >>> [2]:=20 >>>>> https://talk.commonmark.org/t/highlighting-text-with-the-mark-element= /840=20 >>>>> >>>=20 >>>>> >>> On 21-12-09 08:29, Paul wrote:=20 >>>>> >>>> I use a lot of highlighting in my markdown editor Obsidian, but = I=20 >>>>> was wondering if there's a way to have that highlighting show up in t= he=20 >>>>> 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, howev= er,=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 Googl= e=20 >>>>> Groups "pandoc-discuss" group.=20 >>>>> >>> To unsubscribe from this group and stop receiving emails from it,= =20 >>>>> 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-1836-5= 645-9bb5ff76445d%40reagle.org.=20 >>>>> >>>>> >>=20 >>>>> >=20 >>>>> > --=20 >>>>> > You received this message because you are subscribed to the Google= =20 >>>>> Groups "pandoc-discuss" group.=20 >>>>> > To unsubscribe from this group and stop receiving emails from it,= =20 >>>>> 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-2459-8= 22f-93dbe4cbca57%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 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/ba18ff15-897d-4a7f-bbd4-3735da206f1dn%40googlegroups.com. ------=_Part_629_2139150186.1655907019818 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well, if you export in PDF through Obsidian the highlighted text is rendere= d correctly but not if you use Pandoc. I do not export in PDF through Obsid= ian because then 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), fo= nt size, spacing, 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 questio= n! Thanks for reminding me of this. But exporting to PDF in Obsidian with h= ighlights 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 syn= tax ('=3D=3D =3D=3D') in Obsidian and it would be great if I could = render my highlighted text in PDF (also in DOCX and ODT).

Il giorno domenica = 2 gennaio 2022 alle 17:52:44 UTC+1 Alx Nbl ha scritto:
My use case is different from=C2=A0= paulschi, in my case i am trying to convert docx into markdown and generat= ing '=3D=3D =3D=3D' syntax when there is higlighted text in the doc= x file.

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

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

On CriticMarkup, see

https://gith= ub.com/jgm/pandoc/issues/2873
https://gith= ub.com/jgm/pandoc/issues/5430


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

> 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&= gt; 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]: https://www.markdownguide.org/extende= d-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...@googlegroups.= com.
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9995ee8a-295e-183= 6-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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9d89679a-94dc-2459-822f-9= 3dbe4cbca57%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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/ba18ff15-897d-4a7f-bbd4-3735da206f1dn%40googlegroups.= com.
------=_Part_629_2139150186.1655907019818-- ------=_Part_628_1137994023.1655907019818--