public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* quoted atoms highlighted as errors in prolog
@ 2022-10-13 20:03 Antonio Piccolboni
       [not found] ` <34ee4a2d-b80d-4a44-acca-c68fc55fb380n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Antonio Piccolboni @ 2022-10-13 20:03 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1314 bytes --]

Hi

This simple example of prolog

```{.prolog}
afact("Fact").
```
gets converted into this html (please note the class="er" around "Fact", 
straight pandoc cmd with no options)

<div class="sourceCode" id="cb1"><pre class="sourceCode prolog"><code 
class="sourceCode prolog"><span id="cb1-1"><a href="#cb1-1" 
aria-hidden="true" tabindex="-1"></a>afact(<span 
class="ot">&quot;</span><span class="er">Fact</span><span 
class="ot">&quot;</span>)<span class="kw">.</span></span></code></pre></div>

and this latex (please note the ErrorTok{Fact})
\begin{Shaded}
\begin{Highlighting}[]
\NormalTok{afact(}\OtherTok{"}\ErrorTok{Fact}\OtherTok{"}\NormalTok{)}\KeywordTok{.}
\end{Highlighting}
\end{Shaded}

I am a complete Prolog noob, but that looks fine to me and SWI Prolog 
accepts it. Why is it marked as an error token? It results in a bold red 
font with pygments, quite eye-piercing. Thanks

Antonio

-- 
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/34ee4a2d-b80d-4a44-acca-c68fc55fb380n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1979 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-13 22:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13 20:03 quoted atoms highlighted as errors in prolog Antonio Piccolboni
     [not found] ` <34ee4a2d-b80d-4a44-acca-c68fc55fb380n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-13 20:37   ` John MacFarlane
     [not found]     ` <D385346A-F711-4D6C-B6CC-68454AC03B8A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-10-13 21:40       ` Antonio Piccolboni
     [not found]         ` <18f7f4df-2bc8-4244-848c-c07fef627f51n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-13 21:47           ` Antonio Piccolboni
     [not found]             ` <da61c885-da73-4ff3-8d92-72df8510bdf3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-13 21:48               ` Antonio Piccolboni
2022-10-13 22:50               ` John MacFarlane

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).