From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18325 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: Support for Gitlab Flavored Markdown Date: Mon, 16 Oct 2017 10:58:25 -0700 Message-ID: <20171016175825.GA14267@protagoras> References: <20171016164626.GB11889@protagoras> <1fc1546b-3bb4-4140-b6ae-4b4d57f354ca@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1508176706 5849 195.159.176.226 (16 Oct 2017 17:58:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 17:58:26 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBOPGSPHQKGQEY4FNKDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 16 19:58:21 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f61.google.com ([209.85.214.61]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e49eU-0007uv-El for gtp-pandoc-discuss@m.gmane.org; Mon, 16 Oct 2017 19:58:10 +0200 Original-Received: by mail-it0-f61.google.com with SMTP id n195sf13168621itg.14 for ; Mon, 16 Oct 2017 10:58:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508176697; cv=pass; d=google.com; s=arc-20160816; b=aSvXbjKMIfkqR+8OngH6El3Y4WZtTj/hMUJwlHECdyw7BoMBXUfNzZ+OQB3S1BRvN/ 3CUTOtpJDf1LYZ5kekV871mVewZVDZCdc386feWFEilLyfYMTFd3rrlWuUh65VzVfh1U PRiOBflDd7YQfbvObGutz2nRUszsQ+tG1Kd9/NacQYSlpJ2wssrTqLL9meOKCcuHsJV1 XQpkMsL4TMCkY7jHWgHi7JjCIF4HH+DBtW/WhgSOrcRT5fne96aqQHCSuLjxI5F0Ai4R Uq6jMTNNeNHWQW07yI6hSNKYOnUVw73fDbtBylWzHRCKsIGEJ/ZbGRrPclRgPRugUzmp 9txQ== 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:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=tTXDFdyaiXI2B3lO8gKXP5Av/YrtL6lDD4y3wsXov3E=; b=r3LGmSA2bqcqTg6XhuN22PMy0DgQU+BaJ5Uc1BAQvjwWITX8uNnWnphWbFwqKYUT8A BXhL9pdqzpycxU5Q+3HPmjJ2CrmJeM4HgsDO5IOa6VEB5IRT54ECqKx3L9bR2LD6/zh5 An3TDPG14t+/M6HNrjyuE0gFhtrSYZst/T8atJf4ARiU1GU0iT4c7cR+dsxJDJXhywq0 /IYhU74zp0krauDS16trWeRkNSPMg2zUIJKkvF0b4MxvINEAoiJcsaOyf7/tZnyYjyax y4tK+BtNTP7RkjgwyM5Zl5o9XvKc6TOC5o7+1SCLkydAFPTobNkz0IJtuQyisXzunBrL ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=xC/2QSsL; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::231 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:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=tTXDFdyaiXI2B3lO8gKXP5Av/YrtL6lDD4y3wsXov3E=; b=KAW523PuxkmfiWTuM6pXEkQkRwMuVP9sFjOB9zY7GO0VrmcmrUYf+bztuDo4QcW+Zr rPiLtEP3H3pqXe+wD76JW1KdLEP8IMGb2AVaQzIhk+mAFhDt43MzE4PJEPxPy/KUrDOb sqOdP9RXPMS8R17dGGTB4dpHzsmPc5mJ7Czz8GY6A0HM4xFCUabh4SbD6OKKWONBFo8F 6Mb2PmanCM3h/43AzM1oW/oKxOd1ZwkAloFXP5tqeAaPXDQADIpEoBeu9q1iLja2dP2Q EF7wyP/gcUffEaPut/TOFSvOzKMGly2FD4SJHzIJarm4iKS+fr6TvcEnw7lAa6oyUAD7 Axiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=tTXDFdyaiXI2B3lO8gKXP5Av/YrtL6lDD4y3wsXov3E=; b=TcmACtentU+nIPGljt7MNLBXyD7xdU3rIREd2sJdZ59jQ2pUSj7Lyy+hFDv9a4whVX I631xtyTClp4R7/VHqybRf3jcCPufUTf17Ikj53iLUQP/gCtKQc19tmssqEzUT/OInQr xunoRbCj7OFlJJOVsYCvb6864ZuqPodnAofhRjBqpHBy6vA8eXoUNIlzZi2qUm38wbn4 d9Pf/n6wxEdbdfeNujhx2KcEMlRdI8GAB7ws9NAA1J+mxY0ZeqLKDTOqb+JCgOtwUi7N XPEYJ0C5+igwcaP7DmZvvEdyyVxuTY4Y2efb5ypNYaNMvvdCgkUz+B/8GerdktBb9mkT Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaXEBRRSE4E4U2jPIcAPZ0/wq2vXuV0zpGRIFtFqS4VGXQ6Lktxx qfqhZGlhGKxD8/5FgOeLKs0= X-Google-Smtp-Source: ABhQp+Qd1gzotvX1p2MvahDZQNru40tCFYLw50oMnY6ea5hcXezTQDupvukqSYmob9Qf0sXqFne26g== X-Received: by 10.36.227.129 with SMTP id d123mr25561ith.2.1508176697765; Mon, 16 Oct 2017 10:58:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.32.147 with SMTP id g141ls2785858iog.9.gmail; Mon, 16 Oct 2017 10:58:17 -0700 (PDT) X-Received: by 10.36.68.88 with SMTP id o85mr1125955ita.11.1508176697076; Mon, 16 Oct 2017 10:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508176697; cv=none; d=google.com; s=arc-20160816; b=E4EOw3WRDCE799/m95b/qE01D/oMC193gxsexxTXapeX6a4CJZm/9hJWsHhB2C4iL+ SiXQDvA/Fp6OIX+GkdrZNQsFNRm5yhn4uMOUMsNjbac6xGC0/diSuhNWFiPvZy2Gy2J4 /7HI/9yJzs3z3BwzsMpXggZG5BWfFXcg9wl0Dx3CK9PFLuR3plR81IcAH4l6FYj6E7/+ hPGGcCWUMhjflxHe1CYKiaBuRs8ohBmcZtT1/eIGLF9ab5FOk2DYL4GNLFUXzk3v5dXT 26sJthZbji6oEPiifIaxZcxg7zXbzxHRM/uonNa0y7aSgumGU+gyfAQO1MPWfswLo8XQ znvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=KhAfbkcv9eKaeP5TotckcbcnKY7o7KrN3a90mdk7J4I=; b=R0EAxtqPGdOYfBgCxB5fcdAVbFtRg2C5cELORVIGfz8jV6AF5p0S0A4QRbj3AlNue3 oRgTf+Aj+J0EVLFpvbfIj5RG80njuD1124dQh8apg6I6Po1Y76iPLBVgAQ6bfFaaYo1Q A7CLcxtcQnSOBjxzsSAXQRLpqSfVW3ITNCWLUQjAmgM9ZiCmuHcrzu1hev3Phe75QCLB wwr0rCPPMRnQcp8mPalEIZfTH4yOF72+M/5JdHODLhzAw6ozvdlSiWTgYbYnbIle9DGM U/XUVTOp8wvDABuem9c2hArtq9Gi5sr2Z3aQCyin84iIUPENcb4B/eCi+IPBrLTfKzwG yfFQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=xC/2QSsL; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::231 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x231.google.com (mail-pg0-x231.google.com. [2607:f8b0:400e:c05::231]) by gmr-mx.google.com with ESMTPS id d125si134420itg.0.2017.10.16.10.58.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 10:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::231 as permitted sender) client-ip=2607:f8b0:400e:c05::231; Original-Received: by mail-pg0-x231.google.com with SMTP id b11so7412193pgn.12 for ; Mon, 16 Oct 2017 10:58:17 -0700 (PDT) X-Received: by 10.84.128.72 with SMTP id 66mr643250pla.250.1508176696331; Mon, 16 Oct 2017 10:58:16 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id r77sm16946867pfk.93.2017.10.16.10.58.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Oct 2017 10:58:15 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 32799A1ED; Mon, 16 Oct 2017 13:58:04 -0400 (EDT) Content-Disposition: inline In-Reply-To: <1fc1546b-3bb4-4140-b6ae-4b4d57f354ca-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc 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=xC/2QSsL; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::231 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.org gmane.text.pandoc:18325 Archived-At: You could actually write a pandoc filter that handled the nonstandard math formats. You'd intercept inline Math and strip off the leading and trailing backticks. And you'd intercept code blocks with class "math" and turn them into paragraphs with a display Math inline. See the "Scripting with pandoc" tutorial on the website, or if you want to use Python instead of Haskell, look at the examples in the pandocfilters or panflute repositories. For adding to pandoc, we'd need to add another extension, something like `gitlab_math`, and the markdown reader would need to be made sensitive to this. +++ Ognyan Moore [Oct 16 17 10:49 ]: > I know KaTeX was already supported (Thanks for that!) but yeah the > ```math business was a bit surprising. I'm not a gitlab expert but for > the most part they seem to have gone with feature parity with other > products, and having their own version of markdown was a bit of a head > scratcher; no idea why they decided to implement that. > I have no idea what kind of work is involved with getting this > implemented; I would be happy to test; or I can make an attempt at a > pull request based on existing markdown flavors. > Thanks again for developing an awesome product! > On Monday, October 16, 2017 at 9:46:21 AM UTC-7, John MacFarlane wrote: > > We support KaTeX. (--katex) > I had a quick look at the page on gitlab-flavored markdoown. > Pandoc has extensions for > multiple underscores in words (+intraword_underscores) > URL auto-linking (+autolink_bare_uris) > Code and syntax highlighting (+backtick_code_blocks) > Not supported: > multiline blockquote > inline diff > special gitlab references > task lists > videos > special gitlab references > gitlab's special format for specifying math: > $`x`$ inline > ```math > block > ``` > If you'd like, you can add an enhancement request to the > issue tracker for these features (please give the details > above). > But, part of me dies inside at the thought of supporting > yet another syntax for specifying math in Markdown (I thought > the three we already supported were enough!). > +++ Ognyan Moore [Oct 16 17 09:31 ]: > > I have a feature request, to support [1]gitlab flavored > markdown. The > > need in my case came from using gitlab at my academic > institution, and > > it I create pdfs of my markdown documents routinely. > > Gitlab flavored markdown uses KaTeX for math, which I understand > Pandoc > > current does support. The main issues I've noticed with > pandoc/gitlab > > flavored markdown compatibility has been with the use of math > (although > > there may be other issues I have not encountered). > > Thanks, > > Ogi > > > > -- > > 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 [2][1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to > > [3][2]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > [4][3]https://groups.google.com/d/msgid/pandoc-discuss/ > fe1c8b88-6faa-484f- > > a488-ae73a9982f14%[4]40googlegroups.com. > > For more options, visit [5][5]https://groups.google.com/ > d/optout. > > > >References > > > > 1. [6]https://docs.gitlab.com/ee/user/markdown.html > > 2. mailto:[7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. mailto:[8]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 4. [9]https://groups.google.com/d/msgid/pandoc-discuss/fe1c8b88- > 6faa-484f-a488-ae73a9982f14-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium= > email&utm_source=footer > > 5. [10]https://groups.google.com/d/optout > > -- > 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 [11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [12]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [13]https://groups.google.com/d/msgid/pandoc-discuss/1fc1546b-3bb4-4140 > -b6ae-4b4d57f354ca%40googlegroups.com. > For more options, visit [14]https://groups.google.com/d/optout. > >References > > 1. javascript:/ > 2. javascript:/ > 3. https://groups.google.com/d/msgid/pandoc-discuss/fe1c8b88-6faa-484f- > 4. http://40googlegroups.com/ > 5. https://groups.google.com/d/optout > 6. https://docs.gitlab.com/ee/user/markdown.html > 7. javascript:/ > 8. javascript:/ > 9. https://groups.google.com/d/msgid/pandoc-discuss/fe1c8b88-6faa-484f-a488-ae73a9982f14-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 10. https://groups.google.com/d/optout > 11. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 12. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 13. https://groups.google.com/d/msgid/pandoc-discuss/1fc1546b-3bb4-4140-b6ae-4b4d57f354ca-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 14. https://groups.google.com/d/optout