public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Bug in syntax-highlighting? - pandoc 2.10.1
@ 2020-10-02 21:03 'Karl Weber' via pandoc-discuss
       [not found] ` <fa5cd959-e9e4-46a5-b493-0600977c7388o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: 'Karl Weber' via pandoc-discuss @ 2020-10-02 21:03 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi,

I try to use my own syntax-lighting with pandoc and target format HTML.

Coloring works, so far as I have tested it. However, the anchors don't work 
as expected from the documentation.

For one, the doc says:

The numberLines (or number-lines) class will cause the lines of the code 
block to be numbered, starting with 1 or the value of the startFrom 
attribute

This also works as described. In particular: no class numberLines means no 
numbers.

The doc also says:

The lineAnchors (or line-anchors) class will cause the lines to be 
clickable anchors in HTML output.

This does not work, as I understand it. pandoc always produces anchors, 
independent of whether the class lineAnchors is present of absent. To me, 
this is a nuisance, because I do not want anchors. Is there a way to 
prevent pandoc from creating anchors or is this a bug?

Note: pandoc will always create anchors, even without line numbers. Even 
this is ugly, because my browser -- firefox -- shows selectable dots at the 
beginning of each line.

Thanks in advance
Karl

-- 
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/fa5cd959-e9e4-46a5-b493-0600977c7388o%40googlegroups.com.

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

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

end of thread, other threads:[~2020-10-04  8:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 21:03 Bug in syntax-highlighting? - pandoc 2.10.1 'Karl Weber' via pandoc-discuss
     [not found] ` <fa5cd959-e9e4-46a5-b493-0600977c7388o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-10-02 21:19   ` Albert Krewinkel
     [not found]     ` <87blhkjpfo.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2020-10-04  8:22       ` 'Karl Weber' via pandoc-discuss
2020-10-02 21:52   ` 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).