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

✨ NEW: Add inline_definitions option #187

Merged
merged 1 commit into from
Jan 24, 2022
Merged

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Jan 24, 2022

This option allows for definition token to be inserted into the token stream, at the point where the definition is located in the source text
(in addition to the standard extraction to env).
It is not currently part of the Markdown-It JS implementation,
but is useful for cases where one wishes to capture a "loseless"
syntax tree of the parsed Markdown
(in conjunction with the store_labels option).

This option allows for `definition` token to be inserted into the token stream, at the point where the definition is located in the source text
(in addition to the standard extraction to `env`).
It is not part of the Markdown-It JS,
but is useful for cases where one wishes to capture a "loseless"
syntax tree of the parsed Markdown
(in conjunction with the `store_labels` option).
@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #187 (89cf357) into master (448ea83) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #187   +/-   ##
=======================================
  Coverage   96.16%   96.17%           
=======================================
  Files          61       61           
  Lines        3263     3267    +4     
=======================================
+ Hits         3138     3142    +4     
  Misses        125      125           
Flag Coverage Δ
pytests 96.17% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
markdown_it/rules_block/reference.py 97.70% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 448ea83...89cf357. Read the comment docs.

@chrisjsewell chrisjsewell merged commit 99cde43 into master Jan 24, 2022
@chrisjsewell chrisjsewell deleted the inline-definitions branch January 24, 2022 17:48
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