Skip to content

Commit

Permalink
馃殌 RELEASE: 0.18.0 (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jun 7, 2022
1 parent c17d855 commit 75ef9cb
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,53 @@
# Changelog

## 0.18.0 - 2022-06-07

Full Changelog: [v0.17.2...v0.18.0](https://github.com/executablebooks/MyST-Parser/compare/v0.17.2...v0.18.0)

This release adds support for Sphinx v5 (dropping v3), restructures the code base into modules, and also restructures the documentation, to make it easier for developers/users to follow.

It also introduces **document-level configuration** *via* the Markdown top-matter, under the `myst` key.
See the [Local configuration](docs/configuration.md) section for more information.

### Breaking changes

This should not be breaking, for general users of the sphinx extension (with `sphinx>3`),
but will be for anyone directly using the Python API, mainly just requiring changes in import module paths.

The `to_docutils`, `to_html`, `to_tokens` (from `myst_parser/main.py`) and `mock_sphinx_env`/`parse` (from `myst_parser.sphinx_renderer.py`) functions have been removed, since these were primarily for internal testing.
Instead, for single page builds, users should use the docutils parser API/CLI (see [](docs/docutils.md)),
and for testing, functionality has been moved to <https://github.com/chrisjsewell/sphinx-pytest>.

The top-level `html_meta` and `substitutions` top-matter keys have also been deprecated (i.e. they will still work but will emit a warning), as they now form part of the `myst` config, e.g.

```yaml
---
html_meta:
"description lang=en": "metadata description"
substitutions:
key1: I'm a **substitution**
---
```

is replaced by:

```yaml
---
myst:
html_meta:
"description lang=en": "metadata description"
substitutions:
key1: I'm a **substitution**
---
```

### Key PRs

- 鈾伙笍馃摎 Restructure code base and documentation (#566)
- 猬嗭笍 Drop Sphinx 3 and add Sphinx 5 support (#579)
- 馃悰 FIX: `parse_directive_text` when body followed by options (#580)
- 馃悰 FIX: floor table column widths to integers (#568), thanks to @Jean-Abou-Samra!

## 0.17.2 - 2022-04-17

Full Changelog: [v0.17.1...v0.17.2](https://github.com/executablebooks/MyST-Parser/compare/v0.17.1...v0.17.2)
Expand Down
2 changes: 1 addition & 1 deletion myst_parser/__init__.py
@@ -1,5 +1,5 @@
"""An extended commonmark compliant parser, with bridges to docutils & sphinx."""
__version__ = "0.17.2"
__version__ = "0.18.0"


def setup(app):
Expand Down

0 comments on commit 75ef9cb

Please sign in to comment.