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 5 writer: use xml:id tag #3329

Closed
mjang opened this issue Dec 27, 2016 · 4 comments
Closed

Docbook 5 writer: use xml:id tag #3329

mjang opened this issue Dec 27, 2016 · 4 comments

Comments

@mjang
Copy link

mjang commented Dec 27, 2016

When converting from (canonical) Markdown to Docbook 5, tags include only id, such as

<section id="basic-formatting">

It should convert to

<section xml:id="basic-formatting">

The feature request was included in this comment from issue 2164.

@mjang
Copy link
Author

mjang commented Dec 27, 2016

I've verified when converting from

  1. the canonical markdown (daring fireball)
  2. CommonMark
  3. GH flavored markdown

@mb21 mb21 changed the title Markdown -> Docbook 5 conversion: use xml:id tag Docbook 5 writer: use xml:id tag Dec 28, 2016
@mb21
Copy link
Collaborator

mb21 commented Dec 28, 2016

seems like we should indeed use the xml prefix (any reason why we don't do that here? @IvoBCD ?). But we don't have to declare it...

from Namespaces in XML 1.1:

The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, and MUST NOT be bound to any other namespace name.

mb21 added a commit to mb21/pandoc that referenced this issue Dec 28, 2016
mb21 added a commit to mb21/pandoc that referenced this issue Dec 28, 2016
@mb21
Copy link
Collaborator

mb21 commented Dec 29, 2016

I've hopefully fixed this in this pull and added the correct namespace in this pandoc-templates pull. Did I make all the correct changes @mjang ?

@mjang
Copy link
Author

mjang commented Dec 29, 2016 via email

@jgm jgm closed this as completed in 32cbb8f Dec 31, 2016
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