Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to mistletoe-ebp~=0.9.2 #108

Merged
merged 4 commits into from
Mar 7, 2020
Merged

Upgrade to mistletoe-ebp~=0.9.2 #108

merged 4 commits into from
Mar 7, 2020

Conversation

chrisjsewell
Copy link
Member

mistletoe-ebp v0.9 introduces a major API improvement, particularly for block tokens (how they are parsed/stored) and capture of source positions. This allows the majority of the code in myst_parser/block_tokens.py to be removed, in favour of the upstream implementations.

Breaking changes:

  • range field renamed to position
  • ASTRenderer renamed to JsonRenderer
  • FrontMatter is stored as an attribute of Document (rather than a child)
  • source text is now parsed by Document.read(text), instead of Document(text) (@choldgraf this will need to be changed in MyST-NB)

@chrisjsewell chrisjsewell merged commit 786d99b into master Mar 7, 2020
@chrisjsewell chrisjsewell deleted the mistletoe-0.9 branch March 7, 2020 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant