mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Support docutils-0.18: Set auto_id_prefix explicitly
Since docutils-0.18, auto_id_prefix setting will be changed to `'%'` from `'id'`. To keep backward compatibility of node IDs, this sets `'id'` to settings explicitly.
This commit is contained in:
@@ -45,6 +45,7 @@ if TYPE_CHECKING:
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
default_settings: Dict[str, Any] = {
|
||||
'auto_id_prefix': 'id',
|
||||
'embed_images': False,
|
||||
'embed_stylesheet': False,
|
||||
'cloak_email_addresses': True,
|
||||
|
||||
Reference in New Issue
Block a user