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:
Takeshi KOMIYA
2021-10-11 01:52:04 +09:00
parent 3b8456f74c
commit f9a33d2b3a

View File

@@ -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,