Skip to content

Commit

Permalink
🚀 RELEASE: v0.13.5
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Feb 15, 2021
1 parent 9372cf8 commit 7e71fcd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.13.5 - 2021-02-15

- ⬆️ UPGRADE: required markdown-it-py to `v0.6.2`:
In particular, this fixes missing source line mappings for table rows and their children
- 👌 IMPROVE: Store `rawtext` in AST nodes:
We now ensure that the raw text is propagated from the Markdown tokens to the Sphinx AST.
In particular, this is required by the `gettext` builder, to generate translation POT templates.
Thanks to [@jpmckinney](https://github.com/jpmckinney)!
- ✨ NEW: Add warning types `myst.subtype`:
All parsing warnings are assigned a type/subtype, and also the messages are appended with them.
These warning types can be suppressed with the sphinx `suppress_warnings` config option.
See [How-to suppress warnings](docs/using/howto.md) for more information.

## 0.13.3 - 2021-01-20

Minor fixes:
Expand Down
2 changes: 1 addition & 1 deletion myst_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import TYPE_CHECKING

__version__ = "0.13.3"
__version__ = "0.13.5"


if TYPE_CHECKING:
Expand Down
8 changes: 6 additions & 2 deletions myst_parser/myst_refs.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ 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."):
if not (
getattr(domain, "__module__", "").startswith("sphinx.")
# TODO glue can be removed when myst-nb fixed
or "glue" in getattr(domain, "__module__", "")
):
logger.warning(
f"Domain '{domain.__module__}::{domain.name}' has not "
"implemented a `resolve_any_xref` method [myst.domains]",
Expand All @@ -152,7 +156,7 @@ def resolve_myst_ref(
res = domain.resolve_xref(
self.env, refdoc, self.app.builder, role, target, node, contnode
)
if len(res) and isinstance(res[0], nodes.Element):
if res and len(res) and isinstance(res[0], nodes.Element):
results.append((f"{domain.name}:{role}", res))

# now, see how many matches we got...
Expand Down

0 comments on commit 7e71fcd

Please sign in to comment.