Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocBook > MD conversion fails for <menuchoice>, <guimenu>, and <guisubmenu> #1817

Closed
michellemurray opened this issue Dec 15, 2014 · 2 comments

Comments

@michellemurray
Copy link

Input DocBook:
click <menuchoice><guimenu>Window</guimenu> <guisubmenu>Open Perspective</guisubmenu> <guimenuitem>Debug</guimenuitem></menuchoice>

Output Markdown:
click Window Open Perspective Debug

Expected/Desired Output:
click Window > Open > Perspective > Debug
Or
click backtick Window > Open > Perspective > Debug backtick
(so is marked up too and not just plain text)

Conversion Command Used:
pandoc abc.xml -f docbook -t markdown --no-wrap --atx-headers --base-header-level=2 -o abc.md

@jgm
Copy link
Owner

jgm commented Dec 15, 2014

Would it be safe to insert > between every element inside a
menuchoice, or does one need to pay attention to the inner
tags?

+++ michellemurray [Dec 14 14 18:53 ]:

Input DocBook:
click <menuchoice><guimenu>Window</guimenu> <guisubmenu>Open Perspective</guisubmenu> <guimenuitem>Debug</guimenuitem></menuchoice>

Output Markdown:
click Window Open Perspective Debug

Expected/Desired Output:
click Window > Open > Perspective > Debug
Or
click backtick Window > Open > Perspective > Debug backtick
(so is marked up too and not just plain text)

Conversion Command Used:
pandoc abc.xml -f docbook -t markdown --no-wrap --atx-headers --base-header-level=2 -o abc.md


Reply to this email directly or view it on GitHub:
#1817

@michellemurray
Copy link
Author

Within <menuchoice>, you commonly use <guimenu>, <guimenuitem> and <subguimenu>. The latter cannot be nested inside each other and they are mostly treated interchangeably. So treating all elements inside <menuchoice> the same and inserting > between them would be fine to the best of my knowledge.

@jgm jgm closed this as completed in 269b33d Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants