From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26115 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: How to manipuate block instead of
Date: Sat, 12 Sep 2020 10:16:39 +0200
Message-ID: <87een7l89k.fsf@zeitkraut.de>
References: 
Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="17158"; mail-complaints-to="usenet@ciao.gmane.io"
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBOUQ6L5AKGQESL434OQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 12 10:35:09 2020
Return-path: 
Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org
Original-Received: from mail-ed1-f64.google.com ([209.85.208.64])
	by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.92)
	(envelope-from )
	id 1kH101-0004LW-OE
	for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 12 Sep 2020 10:35:09 +0200
Original-Received: by mail-ed1-f64.google.com with SMTP id l2sf6386958ede.19
        for ; Sat, 12 Sep 2020 01:35:09 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1599899709; cv=pass;
        d=google.com; s=arc-20160816;
        b=d2xxUaeM5rE80obJ4GJfhDS+FGuCndG8feghhSDL00qXF9KFV1eExw7W6nYoO1gLZG
         dMxeqNzrRFeKa33Lk5X7+eLRf5iYinPsR/IqXnm5e4e68NAMxnJ89GTSd4y4b5/c1tBR
         SoxLerX3ViG5f4agPeM6CyMuDXvYGAg0h3FJQNndci4TY/7Kc8j3ZJ6udQ7cEnQ7ONoN
         b7nEjfM66sJv3k/p/cBX2T+YytjQcLrFrnU7MgLrxbL3LN0plAEuGKq3RtTR1wL1s+bA
         UoEd4W8dpIpjpK9lWI0X+PKLfKNxlns1V8dwHD91jOLbmNmG1WtnWvpP3QnApIN5RQZb
         gRew==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:in-reply-to
         :message-id:date:subject:to:from:references:sender:dkim-signature;
        bh=Pl4GeKk8T31Nid/c6IvxfoGg8+d5HivIHhPGJnCZVG0=;
        b=Mel/Nq6QkLSKwzoayjOsSY5p7hNTrphBLQASy1q4ZHPXqNKbugpLqL+k/KwnEuVEeH
         avsMwcwgxKiyBhVog71eVxnr66Ddm56Zo5RcQsy2RTvWELLVCfSaFNVlzNfvpKi9lPbK
         e5eP5t7CUISrgkTDr9dOPwgBOmNyA+H+CdcYsNRQHPKzPNNmQc5VeOhEizW04yp6ZZcn
         CZSi0AKgeGhgvNI8SfBO943L9PBgMVS2Q6aMMop18nkrqpls3PK5jerK9NW5gMwHJNrR
         fOvp6i0vf7yx+X8u3MzBP0leSS5G5hsGw1zlq96oKUKHnnYQblWE962CTouJS2iprt3s
         s4OA==
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20161025;
        h=sender:references:from:to:subject:date:message-id:in-reply-to
         :mime-version:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=Pl4GeKk8T31Nid/c6IvxfoGg8+d5HivIHhPGJnCZVG0=;
        b=clDx02SDc4jtshJ7l7CBcgJIh7by8ujTCrKmns3WDRDE7XvXP7R93B5Iqdpe3R2460
         6mwa0lhyr1oVQefZHvZvMCv8OQDRRUV63LNx52vuPygIBV9FlbzOyLCJCXRRls/Pe/lA
         oS4+EPEgEHgH2JozPhZbAquHW1XFgeY+MuwvAqfTqkQszXmIVZP4felZ88DTsfzx8atm
         Y4+68zJAkbyC6OvdShiByq9H1IcySy5smJOnC8z/t3qpg6r/b87yRh6Xp/2BxB1+fwRm
         VY54BCGzR8EM8vt8sNolV2KhnHDKJmbLxiPH/fVh7/qFhTRe4c9zgOTORE20Wg+0G+V/
         RyRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=sender:x-gm-message-state:references:from:to:subject:date
         :message-id:in-reply-to:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=Pl4GeKk8T31Nid/c6IvxfoGg8+d5HivIHhPGJnCZVG0=;
        b=Z3+oWmatjC4CqdYcymDXydC8wqcXabvdRE8UGFFWwnsbsuSM8tKtdwJUeY8BFLFLyI
         2Ea8L2KN5pTGhRTnEQl0HJs5G7Yw8gIlEHjAlg3tHhtrxcGXTOakapgyzmvMvi7+DNL4
         DA/MjiGlKSWnkqQAhG17TXHh8i5fGhWsyPonF4ys9gkr0lTRtheUQ6VrjvWY38vXSVJO
         UW+TAiS0lEQDsQWPPDbg38L2q6YPJ6o7n6khLPMfflaP0Gu5TJiEp6ZXNxubM9KgauOq
         zkzovJI5iqjyjHCs7ymrsunwxRH8xJ5Qtz7HrQ4JAv26ENzGIOGT094gghqhk0QMOX1e
         Xguw==
Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
X-Gm-Message-State: AOAM533Hf/tvQDrqKybzFPSV2HV8N8bIrR4bargThHSoEiz89VGHUYjg
	R2Ms+AoOcIH957M/wXnYnZI=
X-Google-Smtp-Source: ABdhPJz6aihRzGntChc+u4BvqXc/PGv3YHAI5Eh/McBffjPlCoVB1vY21kIekTqzMhw+lA/h5fbXxA==
X-Received: by 2002:aa7:c1c3:: with SMTP id d3mr7199118edp.228.1599899709480;
        Sat, 12 Sep 2020 01:35:09 -0700 (PDT)
X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-Received: by 2002:aa7:c545:: with SMTP id s5ls5431089edr.3.gmail; Sat, 12 Sep
 2020 01:35:05 -0700 (PDT)
X-Received: by 2002:a50:d78e:: with SMTP id w14mr7114044edi.229.1599899705532;
        Sat, 12 Sep 2020 01:35:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1599899705; cv=none;
        d=google.com; s=arc-20160816;
        b=kOgWd22L7awWu+hP3GmOGsMRV0ytCG+OPQ8Hc/TnafVEdJini3u2J9L9m3LSuqlwBe
         RF7Hmh1Ty+S7rrEESK4nZrlVs3h/Gr+FNp2+JVkoir6+THYq6JJg2nsksID/bq8JpWni
         y7WUnDFO0TvzoFEeXCdQ2GN91SZ6qkjoBkjEn9b/7hhEcFXjoWYRKrdv1IleBbR6Aix+
         cNfRgtTiFD6n3kxTSsfZJ52IyO3eAANRc5jebBSxnXwTaIwROOqI12obopEJsoMoFDJt
         V3LLs+f8BO1N32N2Zn/43L88lYUZu4USYTnMsRiNu52FVQFlvSXKyIA0FCGeAk9aUrTk
         aT8g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=mime-version:in-reply-to:message-id:date:subject:to:from:references;
        bh=QC33zx6runL+GaKB/9ovagPGDvcSTeGmEKk9GKz37b8=;
        b=SC4FHLGvgL4g3yw9OS9RlzQcWvhXDoztk2CF8GzA3M57e07MGDuBun8/uWhM3vIIh9
         Fjf7x6yNoKDcPSJhf7WesAayiN6HyCy6UiB/d/vIdM/vjxFeRSPS2hRDvxGkadXcAYHZ
         3b+4LvYJyTaT8V2dVcRuJa/kWbQuuJEVfC64MEOQo80NihMyjSmUd/4SnXmufPetRnfF
         1AD//xUzWvjjgWcHIdQGdZeG2/OfiuRzwY0/kdtQnGeyrlOwEObBaL2ANoQc9tGVhiUN
         KNS/+2DTOrUGaAmBZtjFzJGct7Hbl25872xdX24ArYYO95RXMcxBXZOx7Rhbf5GTti83
         vcvw==
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org
Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [80.241.56.171])
        by gmr-mx.google.com with ESMTPS id ca8si46900ejb.0.2020.09.12.01.35.05
        for 
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sat, 12 Sep 2020 01:35:05 -0700 (PDT)
Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) client-ip=80.241.56.171;
Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4BpQt11JLszQky8
	for ; Sat, 12 Sep 2020 10:35:05 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Original-Received: from smtp2.mailbox.org ([80.241.60.241])
	by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030)
	with ESMTP id 0xR7jorJWITD for ;
	Sat, 12 Sep 2020 10:35:01 +0200 (CEST)
In-reply-to: 
X-Rspamd-Score: -3.84 / 15.00 / 15.00
X-Rspamd-Queue-Id: DD8131700
X-Rspamd-UID: 988af7
X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org
X-Original-Authentication-Results: gmr-mx.google.com;       spf=pass
 (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as
 permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:26115
Archived-At: 

Please checkout
,
it should help with your issue.

J. E. Marca writes:

> 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:
>
> 

>
> I want the data-line-numbers and in fact the class=bash (or
> class=language-bash" ) to be on the code block.
>
>
> 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 there was
> yet another command line switch to force all code markup to occur on the
>  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


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124