From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26122 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "blind.line" Newsgroups: gmane.text.pandoc Subject: Re: How to manipuate block instead of
Date: Sat, 12 Sep 2020 13:22:10 -0700
Message-ID: 
References: <87een7l89k.fsf@zeitkraut.de>
Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="20333"; mail-complaints-to="usenet@ciao.gmane.io"
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-X-From: pandoc-discuss+bncBDAYR4HXWYPBB5O36T5AKGQELXSE4GY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 12 22:22:17 2020
Return-path: 
Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org
Original-Received: from mail-pj1-f60.google.com ([209.85.216.60])
	by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.92)
	(envelope-from )
	id 1kHC2L-000584-7t
	for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 12 Sep 2020 22:22:17 +0200
Original-Received: by mail-pj1-f60.google.com with SMTP id p11sf4232257pjv.2
        for ; Sat, 12 Sep 2020 13:22:17 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1599942136; cv=pass;
        d=google.com; s=arc-20160816;
        b=LxvA+2K1+rf6Xo90pN6x49MuZxnHIJFAy+5dycK8axcEhzj4H+XQtBZ+EE+HYxnLh0
         QBveoWlIse0l4SK3hqrYh9FXNMY5lRh2pAaMECoSrG50Q5/QvsJZEDxDNqH8KCbqNtXF
         fIiF1raYz6jeHmdKXG6QSCnjzZDBu5zNqTsScA8ebbIkWZRZMygZ89PbLNHhxokiUuVg
         jQBdA12EDXlvI6S5aHzZJAGZkr2AWMB4peXeVX/FdSluyMAeV3Laxwlm3engT4eg6KfQ
         RyBBImlPSOpde9HxKaUH7QA+W1SSIVFXYdrQ/2OWhQvI7MD83EracgLRKW/O70aOz4BD
         ncXg==
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:to:in-reply-to:references
         :message-id:date:subject:mime-version:from:content-transfer-encoding
         :sender:dkim-signature:dkim-signature;
        bh=kDftDNXUbazZfyStUdeXQZwVI3vQBiiwDlTUFcGUINI=;
        b=IllgRi3iSdHVtxlSi/zMZWDPmFzIpC7/m3Ff7BNWxlk/RYM+dOFFDBwU5cqza78xgT
         eEsQ5ZwxYmHxQqeZFOfwaoRRzMSJzGbhGUm30RcCpdZzoY2F4R1AkLQ+FUEyzk/amc43
         1/N9xZL4vINEPBATkYBnqv41yPcGJkgP7Y9o3KFpLLdRhIka/L4EsHHL8ALiQI+o/Saj
         NzeoEFtBpWwwe3tPpY4Y8hhw5dW6Rjrcdb2k0kbdDBgpyt6Qd0LLJ0FY6mga3usSwBE7
         DsRwpdDlYltRB69Q1B1v//bxjmE4+rMqaAIsc+lYHsa/kVSPntRPiV3OTe0ndiIkThgP
         Tfhg==
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=mgAJcyh1;
       spf=pass (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::444 as permitted sender) smtp.mailfrom=blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20161025;
        h=sender:content-transfer-encoding:from:mime-version:subject:date
         :message-id:references:in-reply-to:to: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=kDftDNXUbazZfyStUdeXQZwVI3vQBiiwDlTUFcGUINI=;
        b=Gmy4xPYSztETn7OjvcIS8ALgfcURxy+oA/0BZq39J0RggBcEe4NNgBbXohm377O9UB
         2x49IZwZ7/Z4OasUmePToQMoidgsS+1ijz/Q3vU0syDYFvF5KWJPd5gOhsFqOaZP3q44
         TKjxOjoOCvQnbiUVslfMlkJFxw8nnzoQv0fE9rmHFWyzEJGu2ebiqq1HYDM5XdXLRCHT
         8K0OJ7UJt36wqCGmJEPqUbtC0Hf3WZ90tWO4bqwTN1DD23Nt7im6ih16f+Dtt2tC9WIE
         BhpYCFIK/SZfNmt2OgeuntHP+JNNp5UwiD982LwA2f+nHJV7Q6V0LUOhOrDok76iwJtj
         Y9mA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=content-transfer-encoding:from:mime-version:subject:date:message-id
         :references:in-reply-to:to: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=kDftDNXUbazZfyStUdeXQZwVI3vQBiiwDlTUFcGUINI=;
        b=CozEituqj19WYXM37YPCAe7xOXYnjlGjtArqUkfjy0Lk8MqPKucrjEWOXg2U0EKR66
         nlOnB+L8blId4UXX7Ncutlb+5/tvGQ778lDtjCungFnjTV5kZUfTMM9LS/y6BYtRY8NG
         PNRS6ztqhbiYiFIMlZ6R30gxRZ6ROfVYPL9QrmWIEYZacNAWknnFeZDFze6mOuWnUFBn
         L68Kqrp+2sLSdYkjtjLgDqHqq1Cwjw1JUDgGS4Vude709MWZUwM4Fi11kvWr8Mbkg6c4
         0RW4SqCS/cpB9yuqVKFgLOvmDmtgkQ31QMdpKPST0erJH1ZQl4EsVhFa329/+s+WGY/v
         BO1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=sender:x-gm-message-state:content-transfer-encoding:from
         :mime-version:subject:date:message-id:references:in-reply-to:to
         :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=kDftDNXUbazZfyStUdeXQZwVI3vQBiiwDlTUFcGUINI=;
        b=LlmiaJvkBiUodk/LbETomslQ6QjHul2dKNVFGhQEt1KW+LrpmqlpjM46iuTb8mcXXb
         b8m7lJXsgb4rWqKpxC2Czdvl9TnUbDX7Ga5N+mrrkY8NBxM0pDKMKoAPeDAV0DNtCbyV
         Vgt1tsD4vLA2RVdon9uLVbuplbPvMgo1cq0AFRS4PQmAsYasH18qnvOovHjvDFVGMVWF
         BuUxJm38VcLx/2Qda/lOfEmM5n8eT2zquY3MqesDzL//vKlWKHpurrYCTXSh4OuAkZe7
         8MlHF/7LDfLOtf0DppTkN9b9bC7oLKmreaaM0wT4WfnfYvP5v/01zIghqQX/9wz9ZHgg
Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
X-Gm-Message-State: AOAM5338DGHe6JxHsuuvNbEh1+yhCntwxWL0IF69E7J3NQ5Xuk0seXnh
	8VfBERL+X2dxkEGPDkZAbJI=
X-Google-Smtp-Source: ABdhPJxrPsxy3U/0sh6Yh7xMenBM/miyEogXvE8jKPoJWfJcnzGlLdEynBzAbex6DonrzbwMJcWFOA==
X-Received: by 2002:a62:19c2:: with SMTP id 185mr7519307pfz.1.1599942135976;
        Sat, 12 Sep 2020 13:22:15 -0700 (PDT)
X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-Received: by 2002:aa7:96cd:: with SMTP id h13ls2248287pfq.0.gmail; Sat, 12 Sep
 2020 13:22:12 -0700 (PDT)
X-Received: by 2002:a63:2042:: with SMTP id r2mr1142322pgm.349.1599942132795;
        Sat, 12 Sep 2020 13:22:12 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1599942132; cv=none;
        d=google.com; s=arc-20160816;
        b=c0BPnWEhRvyfHfaXDnzwFmMjlXBf49LRCywE1EQl0R2P0EVdKQp2lyOg3G7WhJw/dZ
         Bu3lgcf/XTJulyiqVluh5DlxycfWWpgdSrc4hwbcdl2pGzr1+fT2CzR4S824v8LcKisj
         sInGKf6ttSjFu3hZiALOUatYb4hVshYWfgt+RMkznC7J4XKRHrD0GEL3he4tsbkIRpSu
         6k0AYQoAl5ntuYgC9syOzjw+bZ3BKI5XlvpaXdh5ahIEHJb96NxHxftUO/quiXDkCRxv
         rOLufGqz/Locw8aqN7qj7oMWqpU+gAAXdg8NJBdqlbMltPq0IrSrtbDPHkQgz9ICu045
         ch7w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:in-reply-to:references:message-id:date:subject:mime-version:from
         :content-transfer-encoding:dkim-signature;
        bh=V39v14ezUaa7DmY5iQfVTiA4ai7Mit1lvEcEO4o90BQ=;
        b=BLVzjtd9NDPQ0P05Q1LvkRpV24wlpw2UReL6fg00385Pg4Qx+sD0Di6a5IJvahzafz
         AkoEuvuzxqUVkZq6CgHsZuAwSwF6NOGAEUQ56Q9RVGLHGaTTEQns51FCCFkC/F2GvQ2G
         gZNu6VgYZGMr5DIv8Wc+/1zHrFTPreB104L6OMkHXmNAChVJCApAiCKFTPiW6MFGMY7y
         0Qbmi6qnZBX9EVh80Ssmj/VfSXfxEFkBamQNiMlPpRrEwlgW4DZnhQpGKaEx9zk3l+ag
         3K0g80K5bqQUjVaLsWstve1QSZ6AbzRGPwEm/VTM8/uQxlxaFLMTDD+IAV3U5aUps1S2
         k7nw==
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=mgAJcyh1;
       spf=pass (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::444 as permitted sender) smtp.mailfrom=blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com. [2607:f8b0:4864:20::444])
        by gmr-mx.google.com with ESMTPS id 129si308571pgf.2.2020.09.12.13.22.12
        for 
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sat, 12 Sep 2020 13:22:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::444 as permitted sender) client-ip=2607:f8b0:4864:20::444;
Original-Received: by mail-pf1-x444.google.com with SMTP id n14so9580383pff.6
        for ; Sat, 12 Sep 2020 13:22:12 -0700 (PDT)
X-Received: by 2002:a63:342:: with SMTP id 63mr6048225pgd.134.1599942132192;
        Sat, 12 Sep 2020 13:22:12 -0700 (PDT)
Original-Received: from ?IPv6:2607:fb90:48ea:db6d:cd1e:9f48:c863:66da? ([2607:fb90:48ea:db6d:cd1e:9f48:c863:66da])
        by smtp.gmail.com with ESMTPSA id i6sm4697930pgl.25.2020.09.12.13.22.11
        for 
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sat, 12 Sep 2020 13:22:11 -0700 (PDT)
In-Reply-To: <87een7l89k.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
X-Mailer: iPhone Mail (17G80)
X-Original-Sender: blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=mgAJcyh1;       spf=pass
 (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates
 2607:f8b0:4864:20::444 as permitted sender) smtp.mailfrom=blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
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:26122
Archived-At: 

Yep it works perfectly. Thanks again for the pointer

James

> On Sep 12, 2020, at 01:35, Albert Krewinkel  =
wrote:
>=20
> =EF=BB=BFPlease checkout
> ,
> it should help with your issue.
>=20
> J. E. Marca writes:
>=20
>> Hi all,
>>=20
>> (Apologies in advance if the online editor mangles this post, as I'm
>> writing lots html pre tags)
>>=20
>> I use pandoc to generate reveal.js presentations. All works well if I le=
t
>> pandoc do its thing.
>>=20
>>=20
>> However, was looking through the reveal.js v4 docs, and there is a reall=
y
>> useful hack to highlight successive lines of a code block. See
>> https://revealjs.com/code/#step-by-step-highlights.
>>=20
>> To use it, the reveal.js docs say to add "data-line-numbers" inside of t=
he
>>  tag. For example:
>>=20
>> ```
>> 

>> ...
>>=20
>> ```
>>=20
>>=20
>> 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))
>>=20
>>=20
>> Using this:
>>=20
>> ```{.bash data-line-numbers=3D"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
>> ```
>>=20
>> produces:
>>=20
>> 
>=20
>>=20
>> I want the data-line-numbers and in fact the class=3Dbash (or
>> class=3Dlanguage-bash" ) to be on the code block.
>>=20
>>=20
>> The issue I referenced above (#3858) was opened in August 2017 so I'm no=
t
>> hopeful for any movement from pandoc. But, it would be useful if there w=
as
>> 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.
>>=20
>>=20
>> Any other ways around this? My current solution is just to straight up u=
se
>> 
 tags inside my markdown, which I hate d=
oing as
>> it means I'm only targeting reveal.js.
>>=20
>>=20
>> Thanks,
>> James Marca
>=20
>=20
> --
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124
>=20
> --=20
> You received this message because you are subscribed to a topic in the Go=
ogle Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/p=
andoc-discuss/DlJW1NE48W0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to pando=
c-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgi=
d/pandoc-discuss/87een7l89k.fsf%40zeitkraut.de.

--=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 view this discussion on the web visit https://groups.google.com/d/msgid/=
pandoc-discuss/F647724D-26A3-4A1E-912D-B8C1BBE66315%40gmail.com.