Skip to content

Discuss: AsciiDoc vs Asciidoctor auto-generated ids #647

Closed
@nik9000

Description

@nik9000

Yesterday we discovered that AsciiDoc's autogenerated ids don't quite line up with Asciidoctor's autogenerated ids. Changing IDs can be a huge pain because everyone's links have to be updated. So if we can avoid it we'd prefer not to change the ids. but it looks like Asciidoctor's ids mostly differ in ways that make them better. Specifically, they remove html entities before building the id. Compare auto generated ids:

Title Asciidoc AsciiDoctor
What's Next _what_8217_s_next _whats_next

The ' gets converted into a RIGHT SINGLE QUOTATION MARK which has the decimal html escape ’. That is where the 8217 number comes from. Asciidoctor removes it before generating the id. AsciiDoc keeps it. In this case I think we'd prefer Asciidoctor's result.

There is a separate question around whether or not we should ever use autogenerated ids. Asciidoctor allows us to turn them off if we'd like, but I don't want to get that discussion tangled up in the asciidoctor migraiton.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions