Skip to content

Commit

Permalink
馃敡 MAINTAIN: Minor fixes (#585)
Browse files Browse the repository at this point in the history
Improve integration with myst-nb
  • Loading branch information
chrisjsewell committed Jun 14, 2022
1 parent 75ef9cb commit f643600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion myst_parser/mdit_to_docutils/base.py
Expand Up @@ -381,7 +381,7 @@ def add_line_and_source_path_r(
"""
for node in nodes:
self.add_line_and_source_path(node, token)
for child in node.traverse():
for child in findall(node)():
self.add_line_and_source_path(child, token)

def update_section_level_state(self, section: nodes.section, level: int) -> None:
Expand Down
6 changes: 1 addition & 5 deletions myst_parser/sphinx_ext/myst_refs.py
Expand Up @@ -151,11 +151,7 @@ def resolve_myst_ref(
except NotImplementedError:
# the domain doesn't yet support the new interface
# we have to manually collect possible references (SLOW)
if not (
getattr(domain, "__module__", "").startswith("sphinx.")
# TODO glue can be removed when myst-nb fixed
or "glue" in getattr(domain, "__module__", "")
):
if not (getattr(domain, "__module__", "").startswith("sphinx.")):
logger.warning(
f"Domain '{domain.__module__}::{domain.name}' has not "
"implemented a `resolve_any_xref` method [myst.domains]",
Expand Down

0 comments on commit f643600

Please sign in to comment.