From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32001 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Inaccurate parsing with tex_math_dollars Date: Tue, 17 Jan 2023 15:06:27 +0100 Message-ID: <87bkmxxn5r.fsf@zeitkraut.de> References: <87fsc9xs68.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 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="11863"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Claudio Di Vita To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBBW3TKPAMGQERUOGRGA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 17 15:15:41 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f56.google.com ([209.85.167.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pHmkV-0002pV-I9 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 17 Jan 2023 15:15:39 +0100 Original-Received: by mail-lf1-f56.google.com with SMTP id w2-20020a0565120b0200b004cfd8133992sf4376692lfu.11 for ; Tue, 17 Jan 2023 06:15:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673964939; cv=pass; d=google.com; s=arc-20160816; b=pTisqNRPlZsqP2Is7aEZmFid54WOMDxYSraS7IUivhM5qI2fhWMf2nNMLN2G+wkSJy yMq9kA6iB0aBvdVWJcbG7lBCGwRUO713Zs4DWsZ05zQE2XJukInVlUAzfs6l+msWDlsj ztqjIfMXsQgIk34/APZeBYtw2p7ehKDCgV/wqKbu/O+q6Mpc2dkGrdUXT8bJ7/X1h//e 0/XosJj1puUmtUm/uJKiR8o5d2kXn64cAL4KS2Dto77WwrEAZ6e/nQ6uLWSfOacRPuSc fExF5CFAYy7N2St3Qa9pgGB7SApJwWwaywBWCZJH6MeXvQzoxq+YQLoKLpWJR/mh4Osg Lg4w== 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:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:cc:to:from :references:sender:dkim-signature; bh=FxXqMG0tx2X0ibVGF85KVXJie+yF314k93HLae+0PZE=; b=X9R+ZvmoOB18QZU/SGlWQCkdyDwFDK/riljnAd4V24jw48L5x6HMAbRArtRgoFk9Hc rGrVbVa3KtcAJ9ecxuShO/lm9A7CL9IT7o1KLsGyZFe/m2hKEqVQDofdiCURPTHPl0Oo 4xmzWNUr6WEQNyOW/OfhpGXR6pOqliKh9IGsbj47UbvJKn07Br1eT+m5gKbwciFSkVdw brwvpzneTnQBh9u8XfB1uyPktSJnCTvN/76Ck3668jj1Hj2VuabZNP3o74VFP3YtYoal qnUkWfeTqgOZSfLWAzL6X1m5COn//biJcfi15kFDFFwStNCKHFmj4PKw7nN6ViCZLbh0 zI2w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::202 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:references:sender:from:to:cc:subject:date :message-id:reply-to; bh=FxXqMG0tx2X0ibVGF85KVXJie+yF314k93HLae+0PZE=; b=mE/REmxC1VvFoxrvOLY34cVqNEcGB1NCjvkpN93P++3ipUI6NZ4s6k//rarI7ht4eV LEq01qwVx2HY+W/I8AXDTD/dhDoFPXeL3J+qaApNczXWM+NsxH55NxOIQhQybtkp2+8J w1Z8WJIVm3sprcN36kk0qgfueObMuNKVttwoiEGQKVxvHWyyINxv0C+Ofqf8XJ/A85Ik d2sHBEySkkUWhR1jYoDRWtdaPkk6hGmJisXLDLkbpcF/kaNCzSBo2WxTvE/Qc6jBu4s9 Z84Bj8cA97oHYxy+ouXyvkSO6r2qIapUIHm/d75fntW8JuG54+0OQZbZ2M0x9K X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:references:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=FxXqMG0tx2X0ibVGF85KVXJie+yF314k93HLae+0PZE=; b=04ow6WelKbyaT750M0DNHzlh0upx7Nz0SM/y5ufO9oEEXTVUyZaVWOK7H7IloQt9RB HFIbIpkdS29reydKpN6YrirWNNOEaXoM7TgnBwm+tez0TCvc2Qy6OH1hgvlKyyAkXWYk VsMsUS+gy77jD7BcSymbJJdjDxmUJfOy7eBWjW+2upJ9mszL8a5a0DksLPWTw5dw3deM A7hpi512VtAvBBZMZpnufD5aWp0ht9Fg7NX9AEVy65VJ781DZiZwh8l7Ubw7BmDtoS+L Pd1gzC23K6RdIvwIU Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kpPCvfxWiPTh2tBr6qppXwim4UvrJkSWv4ObpK65NfIcpi2YYJC ekfeYc/Hbca3Oz68StgObbQ= X-Google-Smtp-Source: AMrXdXsvNCqp2h3GJh1Q2F6M5ikX6CBOkEdjGUPacVjnJlYT4wDK63hulQvyFdQNgfP3JJRdFh1UEA== X-Received: by 2002:ac2:4e04:0:b0:4bb:d443:ef42 with SMTP id e4-20020ac24e04000000b004bbd443ef42mr203773lfr.43.1673964939010; Tue, 17 Jan 2023 06:15:39 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:214f:b0:4c8:8384:83f3 with SMTP id s15-20020a056512214f00b004c8838483f3ls3184961lfr.3.-pod-prod-gmail; Tue, 17 Jan 2023 06:15:33 -0800 (PST) X-Received: by 2002:ac2:4c21:0:b0:4d1:5baf:8453 with SMTP id u1-20020ac24c21000000b004d15baf8453mr891605lfq.11.1673964933075; Tue, 17 Jan 2023 06:15:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673964933; cv=none; d=google.com; s=arc-20160816; b=UWKPx6M6XuPEkSQpP66Qx2BgbUWs72UYzK944kh5kdIsFaiPAj773/8w6MANi8UV8F 82T4VgbivF3/z6mrdSjcaRtuu3YR3LOl9oNuB8+NepEt6GgPfYGtQShSXEaVRxOFbs9W E6CTPrhvCR5/GDVkqU63sjuD+De/bMLEGxhiQcVlKdeCXcsE4smtzuomPy2MEoYlhrqy 8cza4vxYSFikjQc0tK9a6xw0W2zmK18ds+EL3Qms7mqI3yP/3s+irbKmsd88U0hnS5M8 l8j6xlI/FkYcHqcrIj5tmRDIVwwq9rxrQs6+oTSGTXbzJYrK7CK0VaZnrDBPApNpFZCD eijQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:references; bh=t3B1c1udHzzoz3lzFNF/J7JWvsZjGFenljecqCLZIEI=; b=vjh+RV5voZwDd3vN61bSqD+RAkA34TmwtPDuEOs+3qSX3OCxFRDXK9pAhyuSvKlAkR e/bCTCK4ea8H86Xv/L348+jAuJRXcX7bGX/s04PDMKaqdT030FcxvpRBBMUSslnuqVYU KCQx4gcEJmXfffBpx7dkHxs1QEFcF5IecHO5YlAIyDkHin/eqGgO2WIyVekzZxTJEX/j 7sE39F5ag17YvVss+1G2RVNn0JKBKez9QzBjA2U+ny6gNFFpjrtMifI7DLP1EBJ87XSp IaYFjjc5i6NCTBmjVRLrN7wJfn2icbQU0vRKq3TDwx0kFv/u0WKGUBvnyv/P6R0rqUsa qGiQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::202 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org. [2001:67c:2050:0:465::202]) by gmr-mx.google.com with ESMTPS id o16-20020ac24e90000000b004a222ff195esi1402932lfr.11.2023.01.17.06.15.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 06:15:32 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::202 as permitted sender) client-ip=2001:67c:2050:0:465::202; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4Nx9sG21pKz9sT0; Tue, 17 Jan 2023 15:15:30 +0100 (CET) In-reply-to: X-Rspamd-Queue-Id: 4Nx9sG21pKz9sT0 X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::202 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:32001 Archived-At: Claudio Di Vita writes: > However I was wondering if the parsing can be fixed/improved. My personal opinion is that the current rules for math parsing strike a nice balance between simplicity and usability. But I guess nothing is ever set in stone, and if you have a suggestion for new set of rules to govern parsing, I for one would be curious to hear about it. =F0=9F=91=8D > Il Mar 17 Gen 2023, 13:27 Albert Krewinkel < > albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> ha scritto: > > =20 > Claudio Di Vita writes: > =20 > > reading the documentation, with the extension tex_math_dollars > > enabled (that's the default) anything between two $ (or two $$) > > characters will be treated as TeX math. > > > > However, I think that when such extension is enabled, the > document > > parsing, including the metadata, is a bit inaccurate, because > also > > strings like ${value1}/${value2} are treated like TeX math. > =20 > One solution is to backslash escape the dollar characters, as in > =20 > =C2=A0 =C2=A0 \${value1}/\${value2} > =20 > =20 > =20 > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124 > =20 > -- > You received this message because you are subscribed to a topic > in the Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d > /topic/pandoc-discuss/V5fTt9aN_AI/unsubscribe. > To unsubscribe from this group and all its topics, 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/ > 87fsc9xs68.fsf%40zeitkraut.de. --=20 Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 --=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/87bkmxxn5r.fsf%40zeitkraut.de.