Skip to content

Commit 7e71fcd

Browse files
committed
🚀 RELEASE: v0.13.5
1 parent 9372cf8 commit 7e71fcd

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

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

518
Minor fixes:

myst_parser/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import TYPE_CHECKING
22

3-
__version__ = "0.13.3"
3+
__version__ = "0.13.5"
44

55

66
if TYPE_CHECKING:

myst_parser/myst_refs.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ def resolve_myst_ref(
140140
except NotImplementedError:
141141
# the domain doesn't yet support the new interface
142142
# we have to manually collect possible references (SLOW)
143-
if not getattr(domain, "__module__", "").startswith("sphinx."):
143+
if not (
144+
getattr(domain, "__module__", "").startswith("sphinx.")
145+
# TODO glue can be removed when myst-nb fixed
146+
or "glue" in getattr(domain, "__module__", "")
147+
):
144148
logger.warning(
145149
f"Domain '{domain.__module__}::{domain.name}' has not "
146150
"implemented a `resolve_any_xref` method [myst.domains]",
@@ -152,7 +156,7 @@ def resolve_myst_ref(
152156
res = domain.resolve_xref(
153157
self.env, refdoc, self.app.builder, role, target, node, contnode
154158
)
155-
if len(res) and isinstance(res[0], nodes.Element):
159+
if res and len(res) and isinstance(res[0], nodes.Element):
156160
results.append((f"{domain.name}:{role}", res))
157161

158162
# now, see how many matches we got...

0 commit comments

Comments
 (0)