public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Cc: Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: Inaccurate parsing with tex_math_dollars
Date: Tue, 17 Jan 2023 15:06:27 +0100	[thread overview]
Message-ID: <87bkmxxn5r.fsf@zeitkraut.de> (raw)
In-Reply-To: <CAMBF16uoWv5=UtiMRvWQ8139hk64bGqL-+ejfO6+CiatgvBTBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. 👍

> Il Mar 17 Gen 2023, 13:27 Albert Krewinkel <
> albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> ha scritto:
>
>    
>     Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>    
>     > 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.
>    
>     One solution is to backslash escape the dollar characters, as in
>    
>         \${value1}/\${value2}
>    
>    
>    
>     --
>     Albert Krewinkel
>     GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124
>    
>     --
>     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.


-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124

-- 
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/87bkmxxn5r.fsf%40zeitkraut.de.


  parent reply	other threads:[~2023-01-17 14:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-17  8:58 Claudio Di Vita
     [not found] ` <d0ebb8c1-bced-44cc-869d-bae152411448n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-01-17 11:53   ` Albert Krewinkel
     [not found]     ` <87fsc9xs68.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2023-01-17 13:35       ` Claudio Di Vita
     [not found]         ` <CAMBF16uoWv5=UtiMRvWQ8139hk64bGqL-+ejfO6+CiatgvBTBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-01-17 14:06           ` Albert Krewinkel [this message]
     [not found]             ` <87bkmxxn5r.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2023-01-17 14:31               ` Claudio Di Vita
2023-01-17 16:07   ` John MacFarlane
     [not found]     ` <4AB3C54A-0054-4E50-9DD7-FBA2D4DA281A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-01-24  9:56       ` Claudio Di Vita
     [not found]         ` <c9214947-3546-4322-9523-f80998e60e32n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-01-24 10:42           ` Albert Krewinkel
     [not found]             ` <877cxcky9v.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2023-01-24 12:09               ` Claudio Di Vita
     [not found]                 ` <CAMBF16tbV8W-h_AkmLGyKzbcufgapHL77qP1=93dWiddrQXkcg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-01-24 13:04                   ` Duncan Murdoch
     [not found]                     ` <1a7053ea-0a6d-94af-2a67-d209420b9039-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-01-24 13:19                       ` Claudio Di Vita
2023-01-24 14:25   ` Claudio Di Vita
     [not found]     ` <6599e581-5fc3-4a77-8be1-d6d962d54600n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-01-24 14:35       ` Albert Krewinkel
     [not found]         ` <87y1psj8ie.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2023-01-24 17:11           ` Claudio Di Vita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkmxxn5r.fsf@zeitkraut.de \
    --to=albert+pandoc-9eawchwdxg8hfhg+jk9f0w@public.gmane.org \
    --cc=claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).