Skip to content

Commit f791cea

Browse files
committed
🔧 Minor update
1 parent 1bd0def commit f791cea

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

myst_parser/config/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def check_extensions(inst: "MdParserConfig", field: dc.Field, value: Any) -> Non
4444
"fieldlist",
4545
"html_admonition",
4646
"html_image",
47-
"inv_link",
4847
"linkify",
4948
"replacements",
5049
"smartquotes",

myst_parser/mdit_to_docutils/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def render_link(self, token: SyntaxTreeNode) -> None:
884884
- If the link is an id link (e.g. `#id`), forward to `render_id_link`
885885
- If the link has a schema, and the schema is in `url_schemes` (e.g. `http:`),
886886
forward to `render_external_url`
887-
- If the link has an `inv:` schema, and `inv_link` is enabled,
887+
- If the link has an `inv:` schema,
888888
forward to `render_inventory_link`
889889
- If the link is an autolink/linkify type link, forward to `render_external_url`
890890
- Otherwise, forward to `render_internal_link`
@@ -908,7 +908,7 @@ def render_link(self, token: SyntaxTreeNode) -> None:
908908
if scheme in self.md_config.url_schemes:
909909
return self.render_external_url(token, self.md_config.url_schemes[scheme])
910910

911-
if scheme == "inv" and "inv_link" in self.md_config.enable_extensions:
911+
if scheme == "inv":
912912
return self.render_inventory_link(token)
913913

914914
if token.info == "auto":

tests/test_renderers/fixtures/myst-config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ My paragraph
360360
Chris Sewell
361361
.
362362

363-
[inv_link] --myst-enable-extensions=inv_link
363+
[inv_link]
364364
.
365365
<inv:#index>
366366
[](inv:#index)
@@ -411,7 +411,7 @@ My paragraph
411411
Title
412412
.
413413

414-
[inv_link_error] --myst-enable-extensions=inv_link
414+
[inv_link_error]
415415
.
416416
<inv:#other>
417417

0 commit comments

Comments
 (0)