-
Notifications
You must be signed in to change notification settings - Fork 12
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
ENH: Add option to convert code to code-cell directives in md output #24
base: main
Are you sure you want to change the base?
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
Codecov Report
@@ Coverage Diff @@
## main #24 +/- ##
==========================================
- Coverage 84.33% 84.28% -0.05%
==========================================
Files 10 10
Lines 1621 1629 +8
==========================================
+ Hits 1367 1373 +6
- Misses 254 256 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
token_type = "fence" | ||
directive_name = "code" | ||
if self.code_to_code_cell: | ||
token_type = "directive" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrisjsewell I can't find the documentation on token_types
-- so I don't see how to specify a myst
directive when adding this token.
@@ -0,0 +1,5 @@ | |||
# head | |||
|
|||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be:
```{code-cell}
<code>
```
This PR adds the option to convert
code
inrst
tocode-cell
in markdown for use withjupyter-book
and enables the direct conversion to executablecode-cell
directives that are available inmyst
.This is enabled using:
in the
cli
orin the
config.yaml