ENH: Add option to convert code to code-cell directives in md output#24
ENH: Add option to convert code to code-cell directives in md output#24
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.
@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.
this needs to be:
```{code-cell}
<code>
```
This PR adds the option to convert
codeinrsttocode-cellin markdown for use withjupyter-bookand enables the direct conversion to executablecode-celldirectives that are available inmyst.This is enabled using:
in the
cliorin the
config.yaml