public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* fenced_divs question (markdown to docx custom styles)
@ 2017-10-31 11:37 Agustín Martín
       [not found] ` <4a8ef775-eb92-4000-b14b-390b06fa06f7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Agustín Martín @ 2017-10-31 11:37 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1108 bytes --]

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 expected

:::: {.custom-style="My Style"}
Testing custom style: "My Style"

Several lines.
::::

to behave the same as

<div custom-style="My Style">
Testing custom style: "My Style"

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?

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 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/4a8ef775-eb92-4000-b14b-390b06fa06f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2583 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fenced_divs question (markdown to docx custom styles)
       [not found] ` <4a8ef775-eb92-4000-b14b-390b06fa06f7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-10-31 12:58   ` Philip Hodder
       [not found]     ` <be71d53a-d12b-4274-bce7-288321d631ec-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Philip Hodder @ 2017-10-31 12:58 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1772 bytes --]

Hi

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

::: MyStyle 
Paragraph here
:::

which will create

<div class="MyStyle">
Paragraph here
</div>

or this

::: {custom-style="My Style"}
Paragraph here
:::

which I believe will give you

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

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ín Martín 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 
> expected
>
> :::: {.custom-style="My Style"}
> Testing custom style: "My Style"
>
> Several lines.
> ::::
>
> to behave the same as
>
> <div custom-style="My Style">
> Testing custom style: "My Style"
>
> 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?
>
> 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 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/be71d53a-d12b-4274-bce7-288321d631ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 4542 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fenced_divs question (markdown to docx custom styles)
       [not found]     ` <be71d53a-d12b-4274-bce7-288321d631ec-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-10-31 13:11       ` Agustín Martín
  0 siblings, 0 replies; 3+ messages in thread
From: Agustín Martín @ 2017-10-31 13:11 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2153 bytes --]

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 
(output).

Thanks again,
  Agustín.

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 
> your confusing the class notation with the custom attribute notation. Try 
> this
>
> ::: MyStyle 
> Paragraph here
> :::
>
> which will create
>
> <div class="MyStyle">
> Paragraph here
> </div>
>
> or this
>
> ::: {custom-style="My Style"}
> Paragraph here
> :::
>
> which I believe will give you
>
> <div custom-style="My Style">
> Paragraph here
> </div>
>
> 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ín Martín 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 
>> expected
>>
>> :::: {.custom-style="My Style"}
>> Testing custom style: "My Style"
>>
>> Several lines.
>> ::::
>>
>> to behave the same as
>>
>> <div custom-style="My Style">
>> Testing custom style: "My Style"
>>
>> 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?
>>
>> 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 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.

[-- Attachment #1.2: Type: text/html, Size: 4778 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-31 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-31 11:37 fenced_divs question (markdown to docx custom styles) Agustín Martín
     [not found] ` <4a8ef775-eb92-4000-b14b-390b06fa06f7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-31 12:58   ` Philip Hodder
     [not found]     ` <be71d53a-d12b-4274-bce7-288321d631ec-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-31 13:11       ` Agustín Martín

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).