From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26117 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 11:50:55 -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="33309"; mail-complaints-to="usenet@ciao.gmane.io"
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-X-From: pandoc-discuss+bncBDAYR4HXWYPBBEVR6T5AKGQEO47SNLA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 12 20:51:04 2020
Return-path: 
Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org
Original-Received: from mail-pj1-f59.google.com ([209.85.216.59])
	by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.92)
	(envelope-from )
	id 1kHAc3-0008ZR-G9
	for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 12 Sep 2020 20:51:03 +0200
Original-Received: by mail-pj1-f59.google.com with SMTP id o9sf4152384pjg.7
        for ; Sat, 12 Sep 2020 11:51:03 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1599936662; cv=pass;
        d=google.com; s=arc-20160816;
        b=dhMbVcXAw4ZgCTSRMkZdnqFbdSUszXgdELxpkJRem59p4MzcNXoKevsJfs0+kcuGdw
         DynNXImqa/kDEWi7d8eIjLIUEKL3mu4suZS73l2T5RYOhQjeRoWGr9FCgeQq4sASzHsk
         fio6Dq4vanJKBazsMj30ZOBsvVf05exBsAuE6jHPNN98V2eZilUNBWO+zALdR1YaJQQc
         1XhRSZXVMYPLBmhbcLgiPf7wJpjC9QqTRpGbDk+maTuQJNGYpk3gO4WYO2X44WJ6ie/U
         YjcOoaU1az3eCK3wmiL9uI7SHnb/Pg+u1gy7+hekcyZBTNMVbD3yLiAKjSfj76vSHa/T
         OHkQ==
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=Htxmql9IC8YtrBfQWWgN/DL5+CF/FVlgAg99fKcI2G0=;
        b=TIc5ihTqfmdAPfruZUYNivqclo7+qCMR+C3DlMnnZA3/rJ/kkW7EHqs7KZ65MEBSyc
         EYwyYGCLLe/gG9AQ0mSL5KrLyarwkk4E8WUuqbvEjC8F0FHQofo8oqxqiGWzvlvALSeO
         u4QhvETXDB3BRJ16oG4qS6ZbmEd5vcVQjiRQhEcjjb3c73zhdaZkVd7ZG3SS4w9iaQR0
         D47x6T+vDM6rwjYquPAK70cdjOeKJ5TEZ5Jd+RmRe+3Mf6EsVp8SzRNY5FWJBZiH+7eE
         Ow6pZWOvpzhtfoJKTojqSl7KhCCut/ZPAEnDxevJ2vP6OEc3xX3fdqwoHrl9pm9quIl1
         T3Qg==
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=NBMsX0Bd;
       spf=pass (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 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=Htxmql9IC8YtrBfQWWgN/DL5+CF/FVlgAg99fKcI2G0=;
        b=hPDkge4T+wVojDmMHlFi+bY4JtGhoGjohvOa8UGdWTqeZd3i0sYtkZHlrcYsf6Ij2o
         Q/Bfx/BFx1b8N7twrMyuGYvS5piykkVc2zBcbe5xpDTB3Iww4D7mY9+gl81xsFxUwUwk
         2cSKWr3Bv5GfWWpo8gL02CEQ6ynArL3lijJ0u+OaM7KkiU1AVo/MbWd5ZgzFljmjBNZl
         30Z1Hc8ADeVhjQ+8p/4AaP6NviqZrpiT96K8FaCnDkFpWmCCGIBZMoO/vUW0LWwqGwtx
         waxUmZZyql+k8/Jfw8MHQbu9XBs7DNa4b2T7c7GnLIsGKAFtDRH32wZCg4SOWnI3e+/0
         jpTQ==
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=Htxmql9IC8YtrBfQWWgN/DL5+CF/FVlgAg99fKcI2G0=;
        b=gF1wY5BBawftkDA5l1HAbgEh0W2anv4e9T7A5lxiSCgHJizK9CwwPqlzSRP63yP7DQ
         HaYdByy9t5ahsTX9Vt3ViVieyMr8co01JSKPDRQbWHh5h6+HgfwaE9I7/fDQhfo3Aowy
         qzcPPZs9j/DLSYXalTTejaRU6i1K9efFJ+Ncd/vdVbwHZKfq19bfcuK9mWDclmFnTPL1
         2pzQzmlFR1yJcPr5gK3oJoLdr5JjthjIXdPqUXX8L/ORV7LcFB3VSr0B25tak0qFG+Yf
         oTscku1QmplWx5E85VmtvX7XtmuLn7Ck8vceXAMPwrUB1Mi1gDRTLITJTvVd2ms25+l+
         adsw==
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=Htxmql9IC8YtrBfQWWgN/DL5+CF/FVlgAg99fKcI2G0=;
        b=U4ObJdrTEINJbKOkwP/61tepS/JE3wOv+/WSKHaxLIiwW707KBZUGUHWvttcZr8o47
         vrysgwhj/9gRLOAG825ByKJ4vAs+49R9chJcuDfdEMAeXPDKNgr9h0g1273kfPhxt0VR
         Was3roFhFVU2lXwXPK4CpysejDI5zmFHoFIx1UXBMH+2kDEWdlOHxGAbHlXJWpaefLFb
         fmbybAR6b3SnNwX/XIh/bvlcHRUiIFqgpl0L5khVLOkPxwFO2243DKEngsGctONEMtSN
         fd05BqBGzwthmA19pxT18M/qeDH67Vs7rEuQD0BUAz/Kl3gYJTmkdpZEE5oHDA5yoQFr
Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
X-Gm-Message-State: AOAM533lRvBTrDFdkm3yWuOP82GrTEbgLFJeEBk9+8W3yNvHDzz7uUyL
	eJ/SHmok48DT7zJNGlbumyM=
X-Google-Smtp-Source: ABdhPJz1e1kDyFirZ8+o6hrqDN0skJL7vnpRDpOET0WD+eDwYix7t2GdJFytcZemBmL1OFwuiQC4oA==
X-Received: by 2002:a17:90a:49c8:: with SMTP id l8mr6995808pjm.24.1599936662194;
        Sat, 12 Sep 2020 11:51:02 -0700 (PDT)
X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Original-Received: by 2002:a17:902:eb49:: with SMTP id i9ls2690498pli.10.gmail; Sat, 12
 Sep 2020 11:50:58 -0700 (PDT)
X-Received: by 2002:a17:90b:357:: with SMTP id fh23mr7165110pjb.221.1599936658419;
        Sat, 12 Sep 2020 11:50:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1599936658; cv=none;
        d=google.com; s=arc-20160816;
        b=jCEuCx/OzSESRmR3Hn4EvbhBAETTGd+DYjXVNy3Yd/CCrAoB1xWV+NSTEELkGCWEd9
         Sa7XK0wYZzTejZpC/5eYHqQvZCHWQF0eqh4iR6FYn5EBejlSrzMHFhTPP9zhWxshRd+4
         ibIreX6Q1terh8IfzJax48kx6jU5zuJmCgVWSCi8EvtKDqPTJVundsOPSzJhCsQ2wqaz
         2UeJwwmRiBfotkxcbgBK3nrLzeeJXbcNL65K0bGjdnW5CP1WCY4Sji5fYk95OrLHNha+
         wcgNJXqc1IPSXcNS88eZPB3SzYRIMjTrgOiDz2uhCUkJ4zW2xbluOcvMD2uEcdjlxOGP
         Gh9A==
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=xs05ajxF+rPrzuQVxYkcm+aIRafs/DadxS9MplxiqRs=;
        b=C95+D9lSUTlz9B5vyGd/j4dlFGlKoecdGsKXUQuoUfuv1yfW21J3jMLoOXc14p4JLe
         ahbTAUfjWX+pAhEpKsjerS9iBCCDq7N1jMYy8Km5cGexzUKFHiHfSe6nrlH/3fwcCizN
         QGU9gLmPGqKAd2JEtIz1mGtDNt9RAJ/e43o7qHSA68m4CDNuErfEWeAMJXGHlldu8+0P
         wXFu7eLVSXiWQeRyz2oMhNAfVsSYz85kbBYtUfKacmzV2WtLvL8Qjcjzt+lqEx5kmvLX
         Ox8wpFBUIDaEutD8XKLf++DF9WEVnjfTwP51riuUBtlPMcAmlHo3R1EeIQi8PsA8UTaT
         4MIQ==
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=NBMsX0Bd;
       spf=pass (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 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-pj1-x1035.google.com (mail-pj1-x1035.google.com. [2607:f8b0:4864:20::1035])
        by gmr-mx.google.com with ESMTPS id g11si338743plp.3.2020.09.12.11.50.58
        for 
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sat, 12 Sep 2020 11:50:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) client-ip=2607:f8b0:4864:20::1035;
Original-Received: by mail-pj1-x1035.google.com with SMTP id v14so1947859pjd.4
        for ; Sat, 12 Sep 2020 11:50:58 -0700 (PDT)
X-Received: by 2002:a17:902:bc81:: with SMTP id bb1mr7541993plb.105.1599936657796;
        Sat, 12 Sep 2020 11:50:57 -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 il14sm4845787pjb.54.2020.09.12.11.50.56
        for 
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sat, 12 Sep 2020 11:50:57 -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=NBMsX0Bd;       spf=pass
 (google.com: domain of blind.line.drawing-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates
 2607:f8b0:4864:20::1035 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:26117
Archived-At: 

Sweet that looks perfect.=20

Thanks,

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/E0A96D8F-922D-4866-9023-891BF0B16F10%40gmail.com.