Re: title in xml:id separated by dashes instead of underscores?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: title in xml:id separated by dashes instead of underscores?

mojavelinux
Administrator
Yes. Simply set the idseparator attribute in the document header.

```asciidoc

=3D Document Title
:doctype: book
:idprefix:
:idseparator: -

=3D=3D Chapter Name

content

```

This will produce:

```xml

...
<chapter xml:id=3D"chapter-name">
...
</chapter>
...

```

Cheers,

-Dan


On Fri, Dec 27, 2013 at 7:44 PM, dimilow [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is it possible to have an option to make titles in xml:id separated by dashes instead of underscores? thanks.

<chapter xml:id="a-new-article">

instead of

<chapter xml:id="a_new_article">


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/title-in-xml-id-separated-by-dashes-instead-of-underscores-tp1234.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--