* docbook to wikimedia markup ordered list
@ 2018-08-08 20:12 Lucas Young
[not found] ` <2a7dc82a-8a8e-4c9c-9c17-ea5df168f010-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Lucas Young @ 2018-08-08 20:12 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1847 bytes --]
I am attempting to use Pandoc to convert a document prepared using docbook
XML to Wikimedia markup.
Unfortunately, that converts the orderedlists to HTML rather than the list
markup described
in "[[Help:WikText]]" abd "[[Help:List]]"
pandoc -f docbook -t mediawiki -o Wfirst.out Wfirst.xml
Here is my test input to pandoc
<pre>
<section id="first"><title id="first.title">First Demo, Lecture, and
Lab</title>
<orderedlist>
<listitem><para>Start up Visual Basic.
One does this by:
</para><para>
Click <emphasis role="bold">Start</emphasis>,
<emphasis role="bold">AllPrograms</emphasis>, <emphasis
role="bold">Microsoft Visual Studio 2013</emphasis>,
<emphasis role="bold">MicrosoftVisual Studio 2013</emphasis>
It has a icon with two purpole iscosceles triangles, connected by a single
vertex.
</para>
</listitem>
</orderedlist>
</section>
</pre>
Here is what it generates. Observe that the lists are now in HTML
<PRE>
= First Demo, Lecture, and Lab =
<ol style="list-style-type: decimal;">
<li><p>Start up Visual Basic. One does this by:</p>
<p>Click '''Start''', '''AllPrograms''', '''Microsoft Visual Studio
2013''', '''MicrosoftVisual Studio 2013''' It has a icon with two purpole
iscosceles triangles, connected by a single vertex.</p></li></ol>
</PRE>
--
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/2a7dc82a-8a8e-4c9c-9c17-ea5df168f010%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 3015 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: docbook to wikimedia markup ordered list
[not found] ` <2a7dc82a-8a8e-4c9c-9c17-ea5df168f010-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-08-08 23:02 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2018-08-08 23:02 UTC (permalink / raw)
To: Lucas Young, pandoc-discuss
> Unfortunately, that converts the orderedlists to HTML rather than the list
> markup described
> in "[[Help:WikText]]" abd "[[Help:List]]"
This will happen when the list has features that can't
be represented with the simple MediaWiki ordered list markup.
Probably the issue here is that your list has multiple
paragraphs within a single list item.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-08 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08 20:12 docbook to wikimedia markup ordered list Lucas Young
[not found] ` <2a7dc82a-8a8e-4c9c-9c17-ea5df168f010-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-08-08 23:02 ` 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).