public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* DokuWiki writer strips away cs language specification for code block
@ 2017-07-12 17:54 Jan Hamrský
       [not found] ` <882d0e54-31a7-4fb3-bbe0-f8070513a2c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Hamrský @ 2017-07-12 17:54 UTC (permalink / raw)
  To: pandoc-discuss


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

Hello, 

I am having slight problem with pandoc functionality for DokuWiki and I am 
not sure if it is a bug, missing feature or how just things are. So here I 
am (as contribution document suggests). 

Pandoc version

pandoc 1.19.2.1 (pandoc-types 1.17.0.5, texmath 0.9.4, skylighting 0.1.1.5)

Command line

pandoc -f markdown -t dokuwiki input.md

Used input

```cs
var answer = 42;
```

Output

<code>
var answer = 42;
</code>

Expected output

<code csharp>
var answer = 42;
</code>

As the pandoc markdown readers (except the strict one) understand the "cs" 
and is also present in "--list-highlight-languages", It would be fine if 
DokuWiki writer does a out of the box transformation using the alias for 
the language (I guess this could be done with filter), because dokuwiki 
accepts only "csharp" (documentation <https://www.dokuwiki.org/wiki:syntax>). 
For end user like me


   - No need to modify already written documents which use "cs" (accepted 
   eg. by Visual Studio Code).
   - Out of the box functionality requires less hassle with setup before 
   usage.
   - More compatibility between formats? With almost zero affects to 
   current usages?

So what you think? Is that missing feature (because it is something new) or 
is that actually a bug (cs is understood by pandoc, but that is somehow 
forgotten by dokuwiki writer)? I am aware of the filter program 
possibilities here, but I am not myself Haskell developer and setup for 
some machines could be painful.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/882d0e54-31a7-4fb3-bbe0-f8070513a2c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2017-07-16 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12 17:54 DokuWiki writer strips away cs language specification for code block Jan Hamrský
     [not found] ` <882d0e54-31a7-4fb3-bbe0-f8070513a2c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-13  7:08   ` John MacFarlane
     [not found]     ` <20170713070842.GA38415-gd5emFPDCk1l5R22fHXGm0EMvNT87kid@public.gmane.org>
2017-07-13 14:33       ` Jan Hamrský
     [not found]         ` <ca40b0c2-5d35-4f0b-bd0d-ae57c0eb65c5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-13 19:22           ` John MacFarlane
     [not found]             ` <20170713192227.GC41791-gd5emFPDCk1l5R22fHXGm0EMvNT87kid@public.gmane.org>
2017-07-16 17:00               ` Jan Hamrský

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