From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26111 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "J. E. Marca" Newsgroups: gmane.text.pandoc Subject: How to manipuate block instead of
Date: Fri, 11 Sep 2020 14:05:36 -0700 (PDT)
Message-ID: 
Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_422_340222714.1599858336137"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="37710"; mail-complaints-to="usenet@ciao.gmane.io"
To: pandoc-discuss 
Original-X-From: pandoc-discuss+bncBDAYR4HXWYPBBIGN575AKGQEWSAAA6I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 11 23:05:42 2020
Return-path: 
Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org
Original-Received: from mail-oi1-f188.google.com ([209.85.167.188])
	by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.92)
	(envelope-from )
	id 1kGqEo-0009a8-AN
	for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Sep 2020 23:05:42 +0200
Original-Received: by mail-oi1-f188.google.com with SMTP id k7sf3827552oif.22
        for ; Fri, 11 Sep 2020 14:05:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20161025;
        h=sender:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=14excsANJ/b98Ogk0FL0lf9fkAn66Zt4+q89l3vlV3c=;
        b=DilPUAY2OgDExKEMJ5yIgr9wiYp1Zh8oydeHP2aYwKTIhoNn/TcWGx6S8Sdx8LImmo
         hmqGJT+aajlcJxRJW8NdPGkpkmkWP6jVOJeeRClNRy26lg3W5ujaKQh+i+m/GRs7KanP
         WbfVqX4g3qTOFeZlzPyknx0Vzh82p6i70/6c/sNGy3clZ0ijhb5FShWmTacB42Ev1Dvo
         9blCn1uTto2deVQ60VC7pt7YxqYABrKpJGZ3RVpa1yM2TKPZ3JLEYNnlYMLRmE/lto53
         DT8WR5QWmLD9xIR1/xe90I1zvNRH3wWl3hQwonqwviTeA01GH423MuxCUaW2F7cJ9MGx
         bfbg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=14excsANJ/b98Ogk0FL0lf9fkAn66Zt4+q89l3vlV3c=;
        b=cIC/Ef3oBmnJwPVUULgsO8MskF1bYepcaQi18vY285o9EMJwnpGE2sXKnIqTykUOsZ
         8bgMsVxZQAtCzLOCwFHvd5iFZaDvG3p8JnYqzFArqf4DBqmiT2S0EuTCgJXNlMnElPVs
         40qatxCUO/pLrLAIiSKazykatLxCKvTe6Kn7QFWB2w7jzpX0bgSi4AWmCSJg8OwOEW5W
         vRm2+ClLNAy0XzlKuu/NuHkewndBWf7W0hWhPXIx9ZuWJdYHW/va9xu5Vs53xt3dTzjx
         8gvDBE01d+THMe0PRwxIMwV2N8JnqMsAzUQouTuOMIMY7qZAe7pC4jzsicGA1aaLLXHr
         s9FA==
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: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=14excsANJ/b98Ogk0FL0lf9fkAn66Zt4+q89l3vlV3c=;
        b=R6ODPPphkS9w6MoMiV2ZFB5JWgjLUWtMBMuOJ6sTr+8RBDAaOVfKaZBqz3k4xXs0+W
         5ifVGnWG9CpvMwu9KDn5EKeDOf9wmjsAYrPJ4bGpGiuO9SREH7ein2E6XM2XmbZMsa2o
         HciAOzN1PGav/1kquBgp9XYv/EoynxfIxUXSzZ5CW6v3i9ijk1bH4wpUvIZKG855w6GX
         WczkrLoagwy8ijMv9BCu1VufupsGHu/aRRV3EOU59kzDWqdKKIFskJOgealxJ6muGsH3
         ZEhXy0GQVk2BXsBhO01zE7ElKCtbRk5nsnTgXu7Np0UFwD6DnL6C58EqtpaYOzmIZHR2
         /Z8Q==
Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
X-Gm-Message-State: AOAM5307L2DNZ/evBfmOwMXIBNAp/sn50WE9pxV0xtZihSMuTNf4u85/
	8SysmRjJXdPYpixgoUL5kd8=
X-Google-Smtp-Source: ABdhPJxYkD1u1bLneGe5vz6G9jIRldqgLLRVyxb/tmMCC2nhkIr4xW9PrwiCYXq6yFaitU+PAMShiw==
X-Received: by 2002:aca:ec50:: with SMTP id k77mr2365578oih.35.1599858341338;
        Fri, 11 Sep 2020 14:05:41 -0700 (PDT)
X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-Received: by 2002:a9d:84c:: with SMTP id 70ls750849oty.5.gmail; Fri, 11 Sep
 2020 14:05:36 -0700 (PDT)
X-Received: by 2002:a9d:6010:: with SMTP id h16mr2397152otj.262.1599858336601;
        Fri, 11 Sep 2020 14:05:36 -0700 (PDT)
X-Original-Sender: blind.line.drawing-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:26111
Archived-At: 

------=_Part_422_340222714.1599858336137
Content-Type: multipart/alternative; 
	boundary="----=_Part_423_136963440.1599858336137"

------=_Part_423_136963440.1599858336137
Content-Type: text/plain; charset="UTF-8"

Hi all,

(Apologies in advance if the online editor mangles this post, as I'm 
writing lots html pre tags)

I use pandoc to generate reveal.js presentations. All works well if I let 
pandoc do its thing. 


However, was looking through the reveal.js v4 docs, and there is a really 
useful hack to highlight successive lines of a code block. See 
https://revealjs.com/code/#step-by-step-highlights.

To use it, the reveal.js docs say to add "data-line-numbers" inside of the 
 tag. For example:

```

...

```


That is difficult in pandoc at the moment, as access to the  block 
attributes is prevented (see also pandoc issue 
[#3858](https://github.com/jgm/pandoc/issues/3858))


Using this:

```{.bash data-line-numbers="1,2,3,4|4|2|3"}
osmium extract \
-p port-au-prince-poly.osm \
-o port-au-prince-latest.osm \
haiti-and-domrep-latest.osm.pbf
```

produces:

 block, OR the 
 block, OR both. Esp. given that the HTML 
recommendation still suggests putting language-*** class inside the  
block.


Any other ways around this? My current solution is just to straight up use 
 tags inside my markdown, which I hate doing as 
it means I'm only targeting reveal.js.


Thanks,
James Marca

-- 
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/cac0e082-2af2-420b-ad6d-aef9afc1c2f9n%40googlegroups.com.

------=_Part_423_136963440.1599858336137
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi all,

(Apologies in advance if the online editor mangles this= post, as I'm writing lots html pre tags)

I use pandoc = to generate reveal.js presentations. All works well if I let pandoc do its= thing.


However, was looking through the reveal.js v4 docs, and= there is a really useful hack to highlight successive lines of a code bloc= k. See https://revealjs.com/code/#step-by-step-highlights.

To use i= t, the reveal.js docs say to add "data-line-numbers" inside of the <code= > tag. For example:

```
<pre><code data-line-numbers= =3D"3-5|8-10|13-15">
...

```


That is difficult in p= andoc at the moment, as access to the <code> block attributes is prev= ented (see also pandoc issue [#3858](https://github.com/jgm/pandoc/issues/3= 858))


Using this:

```{.bash data-line-numbers=3D"1,2,3,4|= 4|2|3"}
osmium extract \
-p port-au-prince-poly.osm \
-o p= ort-au-prince-latest.osm \
haiti-and-domrep-latest.osm.pbf
```
produces:

<pre class=3D"bash" data-line-numbers=3D"1,2,3,4|4= |2|3" ><code ...


I want the data-line-numbers and in fact = the class=3Dbash (or class=3Dlanguage-bash" ) to be on the code block.
<= br>
The issue I referenced above (#3858) was opened in August 2017 so I'= m not hopeful for any movement from pandoc. But, it would be useful if the= re was yet another command line switch to force all code markup to occur on= the <code> block, OR the <pre> block, OR both. Esp. given tha= t the HTML recommendation still suggests putting language-*** class inside = the <code> block.


Any other ways around this? My current = solution is just to straight up use <pre><code  foo=3Dbar etc= =3Detc> tags inside my markdown, which I hate doing as it means I'm only= targeting reveal.js.


Thanks,
James Marca

--
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/cac0e082-2af2-420b-ad6d-aef9afc1c2f9n%40googlegroups.= com.
------=_Part_423_136963440.1599858336137-- ------=_Part_422_340222714.1599858336137--