From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26263 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Trying to use code fragments (reveal.js) from markdown Date: Tue, 29 Sep 2020 11:19:56 -0700 Message-ID: References: <2b03582e-4cb0-452d-a138-571658329605n@googlegroups.com> 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="15523"; mail-complaints-to="usenet@ciao.gmane.io" To: Christian Braune , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBWXVZX5QKGQEWUECRMQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 29 20:20:15 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f191.google.com ([209.85.215.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kNKEZ-0003tg-Dx for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 29 Sep 2020 20:20:15 +0200 Original-Received: by mail-pg1-f191.google.com with SMTP id a129sf3756387pgc.1 for ; Tue, 29 Sep 2020 11:20:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1601403614; cv=pass; d=google.com; s=arc-20160816; b=NSpqIaPuGgzNnXKCKvjIsLGGfpI0I1mq3OsDWfmio5M31c4iexy9Mpy2jYU66RWa8B qFK7yE6OYmvn10vW6b4WXAA+rWd4yJ8KcYq16KFJ9ZVzK/E3CM/EL9iARvaoIChCZpHq 3FXADXnDWsNEYMbgIHRmoRJPMj+8SRAPDdIZoiRjGn7VQ+kVcN0Er97LMeKhGTdFIApg mfoZQPhBvYKqcrkon3bON3LO1y+wZjlTBkWm8GlDhzS4f/IRM7yGNEhpRkdx4sXi7k1G MG1aVKX3M8UhVShUog3fnZ0/Q5jGZTU1N5Tn1sXVGun8YyHlsvDLWnJNUf/y+XtFZiDV HaLA== 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:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=710ZPMYbmkURctUeo5bwuqYeznlxCYnsCyt/FjrAncE=; b=FsNWrlrHLjihCtugXmYH8NbJVbajaYijxa/V1Ebztw5BTslfCIH8J5bgg0wYIHD5Wo 1n1wZohpRSqJX+5vPaQkXKNLNyoyzHPjMPFJSI2fO/id9t9hFT9JTAPdTDucPlZLsSZB ktF87oUqBxEdhO9o1wvzRY4KOojWR49J4usrMmacZLYNiAsRE/Ew/8PGISjTAQ6ruInF ScuK7g+LCCtEwpwFB1MA/Z8IXWShnBC7CmbT88IY9CTodPHOmTvLcVYClH7u9yMq00rg fm/f2hM/UEAbIngzEifntIPBdNWJ7uUve1i1rmoR0Xazlo7eQ/dgQDtLfIUuWI3vR8NG R9sg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=TzhqHbA3; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :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=710ZPMYbmkURctUeo5bwuqYeznlxCYnsCyt/FjrAncE=; b=htiHU915cse7rha34QHPs7T8QmmLCuUotGlHCnliXeS6sIBD6AoE3BQdiv8diCtMTS NKdWJalev7XruaHiccHmj+2fVQpNzmfwQRa8e7iGHSKsEFxsHVTb0rjMeXwlp+vZ8f7a OKGA+1HyEADEv/M+18ykTtUoyomnePQWtfkj/fqMOz3YMbwmAEe4VkQWkOwhUstYVTPN IHMTd+LiN4/v4DDIcR/jkFTMDOY9V6Dy0PQdJxpAPfvH3Xu3anPuthjPNiTf7bEiEjB6 mhBmbetfSOcJLdAL4Bw5jYFPbx3k3ZYqTB8SgVUKn3uXnky5iOozM4tL1jb7BZdybn8N OqMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id: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=710ZPMYbmkURctUeo5bwuqYeznlxCYnsCyt/FjrAncE=; b=PrBGAOVt/lJpugUOYAzgw9DqAEImZOxXykH9Wke/ZkNjY8et5XyLUMcrjj0ow+51V2 mht8PIGBMmVqom+bIf3PIZIBPj7lrU0L/sP3jRtzgY4tWwMz+BQdF1zARimecTn1hMau Dqdb3miRZV/z6tvWzHMlQwOecmm/hAJrvBBhKnEKpFFFgnw6x2dDWH+c/3C9/tpnmb26 55AvN3PTHayBtCGZMrgx0poFllk72Jg3SQQ7FqwIFedsNLRt7nLcfG4SyNMHMhhjBblA EUDtLas1Sre68+5r1Da0t7HR/8vmr4U6mpqcm0Nei6dJPLyTGMNfhmCMwnLyR+9c5try mnCQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531h0gwGD2xSaglehGr5Mm4Kq5LhcvGFNIB9P8dOFT4SyyS2nD12 y1647fQS0M+F2qk7BtRQUnU= X-Google-Smtp-Source: ABdhPJwgWenb6bmyFwCI/CMSBaG2D0vrNURQr+W9Owi/ZGjGnV2XpnA6sfEKrh/Wf96bUCk4OV0Xdw== X-Received: by 2002:a62:7ad0:0:b029:13e:d13d:a08f with SMTP id v199-20020a627ad00000b029013ed13da08fmr5105293pfc.38.1601403614200; Tue, 29 Sep 2020 11:20:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:6883:: with SMTP id d125ls2119806pfc.8.gmail; Tue, 29 Sep 2020 11:20:10 -0700 (PDT) X-Received: by 2002:aa7:939b:0:b029:142:2501:35f1 with SMTP id t27-20020aa7939b0000b0290142250135f1mr5170030pfe.81.1601403610220; Tue, 29 Sep 2020 11:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601403610; cv=none; d=google.com; s=arc-20160816; b=LaBM9GJNYUJS9oSKtUpTn5QjrE+tThQSAJD3xZIji57Prpv6q/bu2eoKym6SOExPG9 Uqh5muzW9cMhj20g9Tj4W6eCkmui22BeLu8Fmz+vX7MvmaK5clJKQeZCYrWQeYuSu+yv 6x0ZgzN+lcxQX5Ug2Hz7d5yxdLEMv+3KB2ZlIGj7NRxyKCn4qr0PvbBPjLGL0siXZ7JL 6uo5YIdru/j8zqnxzQgXRQX0clLT9TZ5jx3ScCSrO4IrSQeJL3dHrzopRD419rCTnZ7J vvnh13GaUKcnrHLh9hwGdT+/nBmob5NfoEAXa4B+5tcndHS4v7/MWxUPzQZtX40O+shf NTmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=FHQjG8Ea0yO3w2RX+t89ICEdbELbPIJ7hCdyMw31Sus=; b=Ifn6jGN3cDiyfmLwSkpgGFyTVhNnXUu1zvKye/1/p4wWmNwdPmzKBh0O9SMTfvT7Dt 2cckVnyTdH5WqC1+9hxsh9CIVmKwdp8fuESkVQfS+xVithWKWLG2os1Xmi1S1Il9i5pC nW5iIuegb6EZZ4c0in5GHP61+x+Rx/qLB+PxqE4Ug0XBYngO718i0JLmbwFDPzh4jppQ IHbZTRW3UVIvpeTVbjcPyVtToyKuf7qCz1SJvii+E3I1a2WYuCOooCdQXkrdSAVw11AW C0saUF4WM3wtS1CeXF6bxEdz2lT/xvohIMe33g7NhPLziOSWxSsVBfTlRXSE2yVLfBuH t4Qw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=TzhqHbA3; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com. [2607:f8b0:4864:20::52c]) by gmr-mx.google.com with ESMTPS id mm16si723241pjb.2.2020.09.29.11.20.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Sep 2020 11:20:10 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52c as permitted sender) client-ip=2607:f8b0:4864:20::52c; Original-Received: by mail-pg1-x52c.google.com with SMTP id 5so4535156pgf.5 for ; Tue, 29 Sep 2020 11:20:10 -0700 (PDT) X-Received: by 2002:a17:902:8bc4:b029:d2:8cec:1fae with SMTP id r4-20020a1709028bc4b02900d28cec1faemr6085163plo.23.1601403609641; Tue, 29 Sep 2020 11:20:09 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id k11sm5612173pjs.18.2020.09.29.11.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 11:20:08 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 352E5A296; Tue, 29 Sep 2020 14:19:57 -0400 (EDT) In-Reply-To: <2b03582e-4cb0-452d-a138-571658329605n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=TzhqHbA3; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:26263 Archived-At: We do target v4. However, pandoc uses its own syntax highlighting, unless you disable this with `--no-highlight`. I doubt this would be sufficient, though, to get this to work. Can you tell us what HTML (not markdown) reveal.js expects to see for this syntax? Christian Braune writes: > Hello, > > I am trying to generate reveal.js slides from markdown that contain code. > > Since v4.0.0 reveal.js supports fragmented (step by step highlighting) of > code lines. > The syntax should be something like this: > > ~~~java [1-3|4-6] > ... > ~~~ > > The above example should generate something that shows the entire code, but > on the first slide lines 1-3 are highlighted, on the seconf lines 4-6. [1] > > When compiling the markdown to revealjs (specifying explicitly that I want > to use revealjs@4.0) the result contains no code highlighting. In fact the > code block is completely messed up. When removing the square brackets, > everything is fine. > I am using pandoc v2.10.1 . > > Is there a way to achieve this or is the reveal.js version not yet > completely incorporated into pandoc? > > Thanks and regards > Christian > > [1] https://github.com/hakimel/reveal.js/issues/2371#issuecomment-619835972 > > -- > 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/2b03582e-4cb0-452d-a138-571658329605n%40googlegroups.com.