From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30983 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: djot - a new light markup language Date: Fri, 15 Jul 2022 23:48:49 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002b742405e3defcd5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6027"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBSWBY6LAMGQENE2ZE5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jul 15 23:49:01 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f58.google.com ([209.85.128.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oCTBF-0001PS-Dr for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 15 Jul 2022 23:49:01 +0200 Original-Received: by mail-wm1-f58.google.com with SMTP id k62-20020a1ca141000000b003a2e342a55bsf2521282wme.1 for ; Fri, 15 Jul 2022 14:49:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657921741; cv=pass; d=google.com; s=arc-20160816; b=Xz7CqCgNDrbZj7wtzC9fPw3BmQnTNqEHVhRAPzB/aBFpMsUHgldMouNiVga8OkSYFD jyw6FphIO98myTwo2JtKKg83BOGsTuEo40q71mUymIqVnWGdooib8iFiP4JEm5/A0nmn seax7r4lCfNL9d3YlP6Ba/b+mfqgm+A5Nij8bOloafn73yxVnZteF6w1y4kPHeQLtQJm D9nH4LBiyAuK2FLOnWdL7pNJsBUVPtIe1mrzHg3W6aH7gsA7ysH82echu4xJwJSIZYtU VrxKbATk2F8o3Sdmnqu5cdaBqkyZm+V25tmq8c79qpzGBq0MeYiZZT4iFVYBL9lLaK7k xUHw== 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:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=Eaknu/QJwS/P3gjsXC69MQu/Mbhp3aW+gfvo3wTgc8E=; b=ydCuscjFlFZ5/UK27+sYVZAf2V79NUXQG/hbMqrTxC6Locu8qtkM557ojHyR63PKCF B/1rsHBrtMn/06sKordZkjUJdQImOTbmBD3xCm9m553f3b4u/U2QerpVhLll6QGsCpkC 8APj+a6x8vWInqaIzIltdcPuui0JMngdILmCLH3ScPhFKzWEgtS/CIl8Fz3Qn2NZ2WvF 34hHJJhZJgfvcxbeR1ubUVWxhy2rytaRw4VbuWd74fFwirC7VV5Cl/G7gJ7tI+WuqFfw I6J/i6BIC3/Xl5nLl2SX/SiwveGL1pHZapa8lOMYgiCvoTXkZBeG6ECxvTxNmJ0PyqEO ZDjA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MDMcRLOC; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52d as permitted sender) smtp.mailfrom=melroch-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=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=Eaknu/QJwS/P3gjsXC69MQu/Mbhp3aW+gfvo3wTgc8E=; b=E4w7g5XEzVwi3qFuKmcqZSDKSbfrh9lfod+gOnywKH3i5m4Q1PI3DDtw2iOr2qwA6A RwVhL5HSH6m2FSqYbJAOYNtv5sArVfygRIudi3c6yv4FzvEkkdWQVC0jkg/Z+chUemIS nWXkdv+ytcbIHoivIgEnb5fHG1j8opfvnRiuwueE1QlM6onnW6CjoC9iRsybzmMpcY4C 875tMZQ0abGeuUkmPaNeP7vmEXzyK+8ALEr6UCQW0f6IaIgn8ySh2hv6gUYWWD4d2Zjm QAOr1y1dAx26aHcImO4sl84QXgXOS7T0eRQF7JZ/hLH8c7Nvy1E5kaOCmOoOKIh+9klS 1H6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject: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=Eaknu/QJwS/P3gjsXC69MQu/Mbhp3aW+gfvo3wTgc8E=; b=oTqIenBNk/AQLznbExVwPZQrlEAvTF60++CSMP4D5htL2eP+IVpJAV5qWa5p04W05a HkMumu3Q95ABeH3X1qa421jVYQSqfHxqqYlksWttZReauf3nHUZWbCmUz3kahpgkIwXd 1qzgb+SLybDeXsW31AjMeH7ha4+FJd2JMwzUxq63uN0Z4UL+8bw3M0qmKrgTG8U+C49I kE4gh/JR9KjQ75TrjN3ZFcZRy5Aim3sjLyt4YZv2UuEJYfG9EWK0UV9x6QXtcYzgrI/X TfAuEYjntP493G4D1/XRQJXn/Vvl2BhxJnt0W5fX3KQHwbYOwX7fuH2UWxOFOSTruy39 BRIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=Eaknu/QJwS/P3gjsXC69MQu/Mbhp3aW+gfvo3wTgc8E=; b=7ToHUVr3kYY1C91Uhiy1r9amn2roH+Lph1HfUcTgtVfBRLXfZK8WUpsjtRDFY+ZGwS +DBJLuUmY3JZRUV60O2lmC47qCo/r3Oj++oU3aZ1TsYy0Ln1VYeIXnuz/WcOo+rSmm1A yuBp2Oyf/oyxUdnJg9TvGGmJVclSvqpvCySzFqaazSA9RoQsiJJ3TIsgvennN39zfSoJ uoL2P7EyM0Fy39lOoHu2csiEjWEsmvHtzbWfmURa+XBqTZN1gWC1wc/D4Doamar18aD3 uMIA1xLnbs8rZOaGJKC82qW4RtwDqRbRGOjscHR7r8hjIe0Rcey7ECnF9mU7v6/XWK9/ ZfNw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9DBG31rYpH5To6GcF6tdEAlpwM1fiM2fs8ei8JNvMfgJaV9QMC yJM6DYv5FgPAI1GBfzyyZRI= X-Google-Smtp-Source: AGRyM1s+WRPsZ4ogxXm2RqqmADMYTlSK9fR8cBYcd902Axv1rWhbOrw9RJb4eNrUg5jCJ0X2moO77g== X-Received: by 2002:a5d:5606:0:b0:21d:dfb5:f15e with SMTP id l6-20020a5d5606000000b0021ddfb5f15emr3113576wrv.404.1657921741028; Fri, 15 Jul 2022 14:49:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1da7:b0:3a0:3b20:d119 with SMTP id p39-20020a05600c1da700b003a03b20d119ls22946939wms.1.canary-gmail; Fri, 15 Jul 2022 14:48:57 -0700 (PDT) X-Received: by 2002:a7b:cb4e:0:b0:3a2:f3b0:4233 with SMTP id v14-20020a7bcb4e000000b003a2f3b04233mr16315167wmj.50.1657921737179; Fri, 15 Jul 2022 14:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657921737; cv=none; d=google.com; s=arc-20160816; b=EB6JyEzescwwgScsI/i9dXj/JVBLwGCwauJMp3CPT4CLyzb/i+bPsqLDwlaAXgU9JO bpjApB4uZVNsAQDBVMzPSdq+nRrTIfZoZp5YNhAL/W034IoSMuaS4yN/bTQ/q5hZ5Wv1 JxVt3aFoCR0TdBSRirOqztFgXWwm+jkctynIltxQeXTQiloNKdXUEyvQV88bAhW2Unzz 6JoRpbJ43YdrUIMPHfvCW0mjrspT0iDyigwAoF9mHboAdptMMviTcM0zoNEEnuVevCCI nknFImDJoE1lcon3r+t5VBBDG5g+rfnTMLuE9KIKKjt+UyoTRT+ThUltU4hdE7R7Nals QW3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uc3oAE7bhD8MktrF8BC61PXmakcEJsBHzAukDA0Iu7I=; b=iCww1dCB8mRwxdFwXS+vlFTBij3jPYjOuz9DazBfziOvvZ4PypDznbar8GpSDcL5em nnXBwbA1hXlNY9F4B1ZUWPlmZmFUqNvXTwewS0uZckFA8qzhrKlMyn518LDi2B2jAZ6F 5tA44S3kiqRDEj6GojaujOnqSSy9U+avdSr9hAu+DwdbiXbJzmc7hhepLMT/C2QMCOQn 1qEBEBXnDXcGdbvKvXm/1wLWcJ5om5yDz+wGhEgFHLRlOPyi7kZPc7IbVlb1I0/gg9U/ 6UTdWPirGMhM5AOedB7bBEhVc4itHGltoqHCAFFqjBogZels754go9QjEexv0/lE6pLA waHA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MDMcRLOC; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com. [2a00:1450:4864:20::52d]) by gmr-mx.google.com with ESMTPS id n25-20020a7bc5d9000000b003a2e84a9f74si191629wmk.0.2022.07.15.14.48.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Jul 2022 14:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52d as permitted sender) client-ip=2a00:1450:4864:20::52d; Original-Received: by mail-ed1-x52d.google.com with SMTP id y4so7917984edc.4 for ; Fri, 15 Jul 2022 14:48:57 -0700 (PDT) X-Received: by 2002:a05:6402:510e:b0:43a:c671:7cd0 with SMTP id m14-20020a056402510e00b0043ac6717cd0mr21866703edd.103.1657921736503; Fri, 15 Jul 2022 14:48:56 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MDMcRLOC; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52d as permitted sender) smtp.mailfrom=melroch-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:30983 Archived-At: --0000000000002b742405e3defcd5 Content-Type: text/plain; charset="UTF-8" This is very interesting, especially the way curlies are used to make opening/closing delimiters explicit and to extend the inventory of possible delimiters. If I may I would like to suggest adding {|underline|}, {!strikeout!} and {.small caps.}.[^1] Small caps are somewhat frequent in linguistics (mainly for grammatical tags in interlinear glosses) so their absence is a problem for me, albeit a problem which can be worked around with a span with a class. I actually like the four space rule, but I guess nothing stops me from just always make sure that a list marker is followed by at least three space characters. Hopefully this will be easier to live with with indented code blocks gone! [^1]: Incidentally this is the same solution as I used in the home grown lightweight markup which I used before I discovered Pandoc, except there the curlies were always mandatory. I used a Perl hash mapping punctuation characters to LaTeX command names and a simple regex substitution `s/\{([[:punct:]])|[[:punct:]]\}/$1 ? "\\$command{$1}\{" : "}"/eg` except that `[:punct:]` was the list of actually used characters. Those were the days! FWIW I differentiated between {_emph_} for emphasis and {/textit/} for object language. Den tors 14 juli 2022 23:58John MacFarlane skrev: > I've been designing a new light markup syntax, based on the ideas in my > essay "Beyond Markdown" (https://johnmacfarlane.net/beyond-markdown.html). > I thought readers of this list might be interested. The language and its > rationale are described here: https://github.com/jgm/djot > > The repository also contains a very fast parser written in pure Lua. A > pandoc custom reader and custom writer are also provided, so you can > convert your favorite formats to and from djot. > > The syntax is briefly described here: > https://djot.net/playground/syntax.html > > You can play with the implementation here: https://djot.net/playground/ > > John > > -- > 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/EF9566B8-7F8B-49BD-9FFB-B370750C73BF%40berkeley.edu > . > -- 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/CADAJKhB74D6XrZ84mKL6zbeq%3DPSyKcekh6LQjENTqu9Gx_Mj%3Dw%40mail.gmail.com. --0000000000002b742405e3defcd5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is very interesting, especially the way curlies are = used to make opening/closing delimiters explicit and to extend the inventor= y of possible delimiters. If I may I would like to suggest adding {|underli= ne|}, {!strikeout!} and {.small caps.}.[^1]

Small caps are somewhat frequent in linguistics (mainly for g= rammatical tags in interlinear glosses) so their absence is a problem for m= e, albeit a problem which can be worked around with a span with a class.

I actually like the four s= pace rule, but I guess nothing stops me from just always make sure that a l= ist marker is followed by at least three space characters. Hopefully this w= ill be easier to live with with indented code blocks gone!

[^1]: Incidentally this is the same solu= tion as I used in the home grown lightweight markup which I used before I d= iscovered Pandoc, except there the curlies were always mandatory. I used a = Perl hash mapping punctuation characters to LaTeX command names and a simpl= e regex substitution `s/\{([[:punct:]])|[[:punct:]]\}/$1 ? "\\$command= {$1}\{" : "}"/eg` except that `[:punct:]` was the list of ac= tually used characters. Those were the days! FWIW I differentiated between = {_emph_} for emphasis and {/textit/} for object language.


Den tors 14 juli 2022 23:58John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:
I've been designing a new light markup syntax, bas= ed on the ideas in my essay "Beyond Markdown" (https://johnmacfarlane.net/beyond-markdown.html).=C2=A0 = I thought readers of this list might be interested.=C2=A0 The language and = its rationale are described here:=C2=A0 https://github.com/jgm= /djot

The repository also contains a very fast parser written in pure Lua.=C2=A0 = A pandoc custom reader and custom writer are also provided, so you can conv= ert your favorite formats to and from djot.

The syntax is briefly described here: https://djot= .net/playground/syntax.html

You can play with the implementation here: https://djot.net/p= layground/

John

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.c= om/d/msgid/pandoc-discuss/EF9566B8-7F8B-49BD-9FFB-B370750C73BF%40berkeley.e= du.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhB74D6XrZ84mKL6zbeq%3DPSyKcekh6= LQjENTqu9Gx_Mj%3Dw%40mail.gmail.com.
--0000000000002b742405e3defcd5--