From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32080 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, 24 Jan 2023 15:35:43 +0100 Message-ID: <87y1psj8ie.fsf@zeitkraut.de> References: <6599e581-5fc3-4a77-8be1-d6d962d54600n@googlegroups.com> 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="24624"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBLW6X6PAMGQET34AO4Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 24 15:46:13 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f62.google.com ([209.85.167.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pKKYu-0006I2-Jz for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 24 Jan 2023 15:46:12 +0100 Original-Received: by mail-lf1-f62.google.com with SMTP id bp18-20020a056512159200b004b59c4fb76bsf6574177lfb.2 for ; Tue, 24 Jan 2023 06:46:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674571572; cv=pass; d=google.com; s=arc-20160816; b=FD8XKcm+qfAdqT8CIkrxOWFQIuGHeM3SR1m0AG4LiTWjeqevMQG7dv9jguZ3gd2M8i XvaAg2HqtpoTyBPxQRcWuRVOsZ677rJ73QqcvF17R4AXuKp5vgGlJnPQ14URLEepLjbh xJCRDFd/SEFP55KwtX7T6tQRXTFL/7Oa0GbefQCZq4B5UNbcXd3ZoWAwRB6GWzM7QpDY JLZV4Sc7TaLOe5e/zCV8qW/giXEb/BQ5yj3/X8ge6jxZDBTjSrlCQhhc6G29n52hS1eN c0fPmyY4NBXObbnnBQSfQqYYY5vBEwu1Gx+YDXzlj9/SpgEqm5kIUPazCfzZvEpSZ3+o xFxA== 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:to:from:references :sender:dkim-signature; bh=5Q7fv5PeuVLiH9ba+FRdadg5BaAqGM5hN0DYGxrqp7c=; b=0yGiakp+0DlU8nWlu2s4uY17RxY38CXNi6veElYWjdQSK3ZtTwYbkTVe2HHRB5Qxki IjqiNZEdh6ZMgzRfXhYxnHskr0M39ozindlP6XYp3mvpWRCUEkAfr4P7M8fXl68kW/6S VOXQxX3oStFfURhAxkZoftkbxEFraf+gq5muPom5I4nND4WW9lnInS14J+UFkPZs+YHt EKXOEml+Llp7q7preRHbm1Vt6gO6g8GeYGV+eLAZV8wCp0ZMofhfunTi8S7lgrXVdu2C m8hOIm3p2/JtR16j4uF8k4/zuR65+0g9TaegISV8wuIFsKAPUbHZ2MdQD0HHqNO2ADne 3yOQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 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:to:from:references:sender:from:to:cc:subject:date :message-id:reply-to; bh=5Q7fv5PeuVLiH9ba+FRdadg5BaAqGM5hN0DYGxrqp7c=; b=URE6iS7KF+YQyUGD5kxoEGas6tyKkl5/HrD0qIsbkG7gDrhQXbA8f2Qa1YbT2n5sck qJ8M9nYS0jOdMm8H4lrx5xuxoS55KvYIMOw5oYc42cdAgP+nB4Qaqbd+1E6ZuxJLAahf RzGfJQbFZbFtjn/jQd1SIU2KUsKCbDpXpTPZiQvlolVDkAJOHPwQEUXs0MsNlEOtCy/I YF3OQTfCUQx+bbvoBJaE99Qko6pEPq5yOteT/GE4I0C7qgyi8RW8WdY2eyr5I2mci6eG bn1qvxMvNRdcYGZ6CWXBw4eMKaPqk0YDMUC6U8buap4s12wVGooHqVSZjw0ln6jOI 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:to:from:references:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=5Q7fv5PeuVLiH9ba+FRdadg5BaAqGM5hN0DYGxrqp7c=; b=h0C/wAsIlVEaHtKm82QAI17zvxWabtVk8EqQlaoFFGUvem5YSlGm4HrlN0PCLTXeoj JSv9W7TTO/yua7Y6iKE9novfKVZWOu4QAGmRhWfoOag9uWOv6Gv/TSZe+UthwCJMiMqT oGU3vpm33Qb+TeUZ8uIwBgZE2anujFfDQvtRUKrQu1+Q1IEppfmvPrednlhuUe9nTuvF fOGHXTU/dKStyTIPc8npslUeqWvbPlp3arhX/gIX+Ggjt56VU5rbxDkbEOczDr9NgoUo DWzQ7YcPRkHJ8nAH4mGT Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kpkQOX35B008JhFFcj0rwenvxIuEmQBPHoFXS31Sgb+I7ZptST2 ufQ2WfSV0rDGncDtZGD6UTs= X-Google-Smtp-Source: AMrXdXurMPtN2Jcuxheb7kujUb4PDQOkf6uTV4J3JoO/gw9LO7I/Igk4y0DkL6BYH+xhp1akp66MGw== X-Received: by 2002:a05:6512:3a8b:b0:4d5:5fb3:929b with SMTP id q11-20020a0565123a8b00b004d55fb3929bmr1671287lfu.604.1674571572051; Tue, 24 Jan 2023 06:46:12 -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-20020a056512214f00b004c8838483f3ls7138111lfr.3.-pod-prod-gmail; Tue, 24 Jan 2023 06:46:05 -0800 (PST) X-Received: by 2002:a19:6b14:0:b0:4a4:68b9:66f3 with SMTP id d20-20020a196b14000000b004a468b966f3mr6853229lfa.62.1674571565360; Tue, 24 Jan 2023 06:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674571565; cv=none; d=google.com; s=arc-20160816; b=RJIigXvLLf/b6t487liiMrYCdNJh+0YrmmYoNXfDOFxNveBPB4Wg0V68AA1SUoY19C gOybfLkzSJDxbji5OG3jlfwW5B2EYxNkZuueV0rezic+sjdBIoS/6LCc+RK0TgtW2onQ 7ThrxPfWVz9Cb1KknWLlyVqER5NyFFhJ552b+VjlE3YtXsm5IKdkwnTdfb+AOCCtVaTT odOJZbLrNLRlDi/V9DyH/Fzj/fpIqSg4n1GJ3UgydXJj/Pe7Lz/uYxAgLf1iHkzLMWut n0z8lfmXNJ6iV+RiH3Nf7OOhcnJa2JEFbFDVquNMbstQrKF2YssPrDZp5mu7gqv2pT3j a9kw== 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:to:from:references; bh=nUE1efGtwdG+PCPE/OG3o/cqeRxG2xu3EM9nuQqVL6o=; b=k7JFt6r5acGt7oDUo3h8bM+s5bp3N6B6EVr4asAEijb2YuSxpVlyLujFNg9JjNbH17 eiSLiNSXJcWZMK+hZsC2Em5pFVJwEhEHuteWyt7XH35VQpaHPhqqoF1Av8aio3/fyezV 4x07N3n3QPs/nzQzgQoRahrn3KlrBiDlH3lkw4ZiLzCsGPsrikWaJQsStZq+qc0UQa4l sAlEqT+ZPbb9fWglPpDHfzOA+IKMc6r5/JfXOlToSG2JeULo1ARIFuPGpY2U76rx47QM S4/ayziUJmT/AKfNQxIplopZkhq5J/NEQbG3oLIwKQ2gzJ8dqCKfjFjKG7wfpRQ8wj5T HqTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 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. [80.241.56.172]) by gmr-mx.google.com with ESMTPS id by31-20020a05651c1a1f00b0028b62e93f26si120550ljb.4.2023.01.24.06.46.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 06:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) client-ip=80.241.56.172; Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (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 4P1VCG3hZsz9sR0 for ; Tue, 24 Jan 2023 15:46:02 +0100 (CET) In-reply-to: <6599e581-5fc3-4a77-8be1-d6d962d54600n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Queue-Id: 4P1VCG3hZsz9sR0 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 80.241.56.172 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:32080 Archived-At: Claudio Di Vita writes: > Confirmed: when tex_math_dollars is disabled pandoc doesn't create > Math elements, while under the same conditions (inheriting > PANDOC_READER_OPTIONS) pandoc.read create Math elements for the same > document. That's a problem in the docs: it should be noted more clearly that the format extensions are taken from the format, not from the ReaderOptions. Try with pandoc.read('$2^a$', 'markdown-tex_math_dollars') or (with pandoc 3) md =3D { format =3D 'markdown', extensions =3D {tex_math_dollars =3D 'disable'} } pandoc.read('$a$', md) > Il giorno marted=C3=AC 17 gennaio 2023 alle 09:58:14 UTC+1 Claudio Di Vit= a > ha scritto: > > Hi folks, > =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. > =20 > 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 > Of course disabling the extension or escaping the $ characters > there are no issues, but it would be nice to avoid that, if > possible. > =20 > Any idea of what can be the wrong parsing cause ? > =20 > Cheers, > =20 > Claudio --=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/87y1psj8ie.fsf%40zeitkraut.de.