Skip to content

autosectionlabel generates smart-quoted labels only #4027

@wlonk

Description

@wlonk

Subject: autosectionlabel generates smart-quoted labels only

Problem

  • The autosectionlabel extension is very useful, but some of my section labels include apostrophes. When I go to refer to them elsewhere in the text, I have to use smartquotes, despite those not being present in the source. I'd like to be able to refer to my autosectionlabels exactly as they are in the source.

Procedure to reproduce the problem

A sample title that's got an apostrophe
=======================================

This reference will not work: :ref:`A sample title that's got an apostrophe`.

This one will: :ref:`A sample title that’s got an apostrophe`.

I'm planning to put in a PR for this (at least behind a feature-flag), but I don't have the time right now, so this issue is a note-to-self, unless anyone wants to address it before I get a chance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions