public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Styling bracketed spans and fenced divs: "style" vs. "custom-style=style"
@ 2022-08-24  9:29 name name
       [not found] ` <edf9f645-82e7-4912-afd0-d704124914a6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: name name @ 2022-08-24  9:29 UTC (permalink / raw)
  To: pandoc-discuss


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

I have just discovered that there are at least two ways to style bracketed 
spans and fenced divs.

Styling bracketed spans:

~~~ test 1-A
[Get out]{.emphatically}, he said.
<p><span class="emphatically">Get out</span>, he said.</p>
~~~

~~~ test 1-B
[Get out]{custom-style="emphatically"}, he said.
<p><span data-custom-style="emphatically">Get out</span>, he said.</p>
~~~

Styling fenced divs:

~~~ test 2-A
::: poetry
| A Bird came down the Walk---
| He did not know I saw---
:::

<div class="poetry">
<div class="line-block">A Bird came down the Walk—<br>
He did not know I saw—</div>
</div>
~~~

~~~ test 2-B
::: {custom-style="poetry"}
| A Bird came down the Walk---
| He did not know I saw---
:::

<div data-custom-style="poetry">
<div class="line-block">A Bird came down the Walk—<br>
He did not know I saw—</div>
</div>
~~~

A-versions requires fewer number of characters, so your raw Markdown files 
will be easier to read, and also easier to style with CSS if you convert 
them to HTML.

What are the advantages of B-versions?

-- 
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/edf9f645-82e7-4912-afd0-d704124914a6n%40googlegroups.com.

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

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

* Re: Styling bracketed spans and fenced divs: "style" vs. "custom-style=style"
       [not found] ` <edf9f645-82e7-4912-afd0-d704124914a6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-08-24 10:08   ` BPJ
  0 siblings, 0 replies; 2+ messages in thread
From: BPJ @ 2022-08-24 10:08 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 2530 bytes --]

The HTML-like versions existed before the syntaxes for the others were
decided on. (In particular the discussion on the div syntax was long and
tortuous!) So basically they are an historical holdover for backwards
compatibility.


Den ons 24 aug. 2022 11:30name name <ivan20151013-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:

> I have just discovered that there are at least two ways to style bracketed
> spans and fenced divs.
>
> Styling bracketed spans:
>
> ~~~ test 1-A
> [Get out]{.emphatically}, he said.
> <p><span class="emphatically">Get out</span>, he said.</p>
> ~~~
>
> ~~~ test 1-B
> [Get out]{custom-style="emphatically"}, he said.
> <p><span data-custom-style="emphatically">Get out</span>, he said.</p>
> ~~~
>
> Styling fenced divs:
>
> ~~~ test 2-A
> ::: poetry
> | A Bird came down the Walk---
> | He did not know I saw---
> :::
>
> <div class="poetry">
> <div class="line-block">A Bird came down the Walk—<br>
> He did not know I saw—</div>
> </div>
> ~~~
>
> ~~~ test 2-B
> ::: {custom-style="poetry"}
> | A Bird came down the Walk---
> | He did not know I saw---
> :::
>
> <div data-custom-style="poetry">
> <div class="line-block">A Bird came down the Walk—<br>
> He did not know I saw—</div>
> </div>
> ~~~
>
> A-versions requires fewer number of characters, so your raw Markdown files
> will be easier to read, and also easier to style with CSS if you convert
> them to HTML.
>
> What are the advantages of B-versions?
>
> --
> 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/edf9f645-82e7-4912-afd0-d704124914a6n%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/edf9f645-82e7-4912-afd0-d704124914a6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CADAJKhDY%2Bq8x97%3DU%3DmyTjJv9s7wJS6SwFfO74WS3bL6HKbScuA%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3775 bytes --]

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

end of thread, other threads:[~2022-08-24 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-24  9:29 Styling bracketed spans and fenced divs: "style" vs. "custom-style=style" name name
     [not found] ` <edf9f645-82e7-4912-afd0-d704124914a6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-24 10:08   ` 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).