From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18447 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Agust=C3=ADn_Mart=C3=ADn?= Newsgroups: gmane.text.pandoc Subject: Re: fenced_divs question (markdown to docx custom styles) Date: Tue, 31 Oct 2017 06:11:19 -0700 (PDT) Message-ID: <69e181bc-a47c-4a02-8ec5-47046424220f@googlegroups.com> References: <4a8ef775-eb92-4000-b14b-390b06fa06f7@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9823_360493819.1509455479463" X-Trace: blaine.gmane.org 1509455485 25843 195.159.176.226 (31 Oct 2017 13:11:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2017 13:11:25 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDC7PRMFWYJBB6HM4HHQKGQEDJWHWYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 31 14:11:15 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f62.google.com ([209.85.218.62]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9WK1-0005lY-Db for gtp-pandoc-discuss@m.gmane.org; Tue, 31 Oct 2017 14:11:13 +0100 Original-Received: by mail-oi0-f62.google.com with SMTP id s185sf18752497oif.16 for ; Tue, 31 Oct 2017 06:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=FEw8qOkTAGTT9QvTSBIXUsrAXI71Z1UuOl33HhIOuwM=; b=aLEH1I3vtTyT9VoOpyEydc8BJomkSpNfSuI7y9R/zlK64MzpGG6p9G6O9+akwAgKiT xKax1pXEchXF2OnwVjvPiVo0+NsK+vLc8KBzsFrOss0VJ3MCBCRbZqnk2hPzIY1kj3DV JqPJrEEHT24HvPV5q4Nuvjd6TK1X8sMsvIT48LDSdDiVnTFVT8PSl6uy6t+J+dhUXXaO ZjLEUZ0OBxU8iVR5UvDNy9eZbOurjAy13QM5/MeN4NzmLBEGMvR8k7WVG+RVvlHxWPH/ 15QA5jqGhxgmWCNzrnOFSSQ2TpaOTAyt0o3mIeaE7vK2A8ns4rvrMb5yMhrKVzmhZMLK Fs0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=FEw8qOkTAGTT9QvTSBIXUsrAXI71Z1UuOl33HhIOuwM=; b=GDEs9iFS2Xxdq+eDjn0cVRngc8iOkkoZSKKuARrepmWU8ByKkuUAw54PadderCp0z0 EOS4e5J9MOPAMADycori6W36zHO7aJT8SyduyiiruM6eGo4a0Esvv/TOOq4FfcdaGdYE PJeOVHyCwUiZD8m0aYYMhlRDfflJEj/wP63cFifV6Ce/Z9jL8FiMIa9n2/hVXzKT7U2G oUd5y/V7riCXUYwlIhZckDqBm3jjGQ0f7tGz5zQhXQnhw9Xs6J42aLt7d+uBiCWQH+0u KuHrlT4VbZWk/VF/TLbLcmP4CVhiiO1xtW2FWTm/b6ExhLRLfYu8uPUcQuKwyQ2t2f2L USgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=FEw8qOkTAGTT9QvTSBIXUsrAXI71Z1UuOl33HhIOuwM=; b=DqFXjMKUA+FnZ7LDSqXG6RPB9tWfRbGuBqiFtQYXfaapDVZEzN7kCarN5/WgMAu3qg X2XpBSR9LduTTw9e+TPFbrjy7zXAtzYcBnPrkn85g8EVU8PNazw3Tbk6RGEo2bLY2P3w wA5kI56UEBgW4s+QEIqS4MDle5JukoP3xspJjK+RdCW2WHsBAylHUeUXhEarw+FWlNlW OXVlYb+YnMF+uaUdnCH75J02d9+RRQRJtPGJbEqt28fWYnLKJUXI2RmhJet5t14ZB4x+ VIQWGlkdTdHnHvPaJO5HmSOz5aHAfPfLUyQKGnrgAuCoAd4mbH+CnFs8aUnwrfFXtbco vQXQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaWpYZKCmtPEV4fMQiz76JSjEjEmrz4dSy5AYgFePRxO5bnoIOJF Wdv468xQFVR5M1GgajGvvzo= X-Google-Smtp-Source: ABhQp+RQrpZKHPqH9kwAnjaBhffmIJkhJey7Jh81cRw12JhMzEjBZK3jICKLHzDuAf6gUPsQ9hRXqQ== X-Received: by 10.157.41.135 with SMTP id n7mr51802otb.5.1509455480744; Tue, 31 Oct 2017 06:11:20 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.52.231 with SMTP id t36ls5489733otd.19.gmail; Tue, 31 Oct 2017 06:11:20 -0700 (PDT) X-Received: by 10.157.85.8 with SMTP id l8mr51753oth.7.1509455479904; Tue, 31 Oct 2017 06:11:19 -0700 (PDT) In-Reply-To: X-Original-Sender: agusmba-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.org gmane.text.pandoc:18447 Archived-At: ------=_Part_9823_360493819.1509455479463 Content-Type: multipart/alternative; boundary="----=_Part_9824_1647508859.1509455479463" ------=_Part_9824_1647508859.1509455479463 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You are completely right! The second part is what I was doing wrong. Thanks for clarifying it. The attribute is helpful as it allows to use custom styles on your docx=20 (output). Thanks again, Agust=C3=ADn. On Tuesday, October 31, 2017 at 1:58:17 PM UTC+1, Philip Hodder wrote: > > Hi > > I've also been testing this (been after this feature for ages!), I think= =20 > your confusing the class notation with the custom attribute notation. Try= =20 > this > > ::: MyStyle=20 > Paragraph here > ::: > > which will create > >
> Paragraph here >
> > or this > > ::: {custom-style=3D"My Style"} > Paragraph here > ::: > > which I believe will give you > >
> Paragraph here >
> > although I'm not sure an attribute of that name will be helpful... > > Phil > > On Tuesday, October 31, 2017 at 11:37:29 AM UTC, Agust=C3=ADn Mart=C3=ADn= wrote: >> >> I was trying to test the `fenced_divs` extension in pandoc 2.0. >> >> I expected that it would behave like raw html divs, and thus I also=20 >> expected >> >> :::: {.custom-style=3D"My Style"} >> Testing custom style: "My Style" >> >> Several lines. >> :::: >> >> to behave the same as >> >>
>> Testing custom style: "My Style" >> >> Several lines. >>
>> >> when converting from markdown to docx. >> >> However the first approach is not working, I even see the ":::: {...}" i= n=20 >> the output document. >> >> Did I misunderstand the use case for fenced_divs? >> >> Thanks! >> > --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/69e181bc-a47c-4a02-8ec5-47046424220f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_9824_1647508859.1509455479463 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You are completely right!
The second part is what I wa= s doing wrong.

Thanks for clarifying it.

<= /div>
The attribute is helpful as it allows to use custom styles on you= r docx (output).

Thanks again,
=C2=A0 Ag= ust=C3=ADn.

On Tuesday, October 31, 2017 at 1:58:17 PM UTC+1, Philip= Hodder wrote:
Hi

I've also been testing this (been after this fea= ture for ages!), I think your confusing the class notation with the custom = attribute notation. Try this

::: MyStyle=C2=A0
Paragrap= h here
:::

which will create

<= font color=3D"#660066"><div class=3D"MyStyle">
Paragraph= here
</div>

or this

::: {custom-style=3D"My S= tyle"}
Paragraph here
:::

which I b= elieve will give you

<div = custom-style=3D"My Style">
Paragraph here
</div>

although I'm not sure an attribute of that = name will be helpful...

Phil

On Tuesday, Oc= tober 31, 2017 at 11:37:29 AM UTC, Agust=C3=ADn Mart=C3=ADn wrote:
I was trying to test the `f= enced_divs` extension in pandoc 2.0.

I expected that= it would behave like raw html divs, and thus I also expected
:::: {.custom-style=3D&qu= ot;My Style"}
Testing custom style: "My Style"

Sev= eral lines.
::::

to behave the same as
<div custom-style=3D"=
My Sty= le">
Testing custom style= : "My Style"

<= span style=3D"font-family:"courier new",monospace">Several lines.=
</div>

when converting from markdown to docx.

However the first approach is not working, I even see the "::= :: {...}" in the output document.

Did I = misunderstand the use case for fenced_divs?

T= hanks!
=

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/69e181bc-a47c-4a02-8ec5-47046424220f%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_9824_1647508859.1509455479463-- ------=_Part_9823_360493819.1509455479463--