-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I'm really enjoying using mdlab to create runnable markdown files. I've noticed that when parsing a markdown file, the extension groups all consecutive markdown content between two code blocks into a single, large markdown cell.
Current behavior
If I have a document like this:
# Main Title
This is the introduction to my notebook.
## Section 1: Setup
Here are some details about the setup.
### Subsection 1.1
More details here.
```python
print("Hello, World!")
```The entire block of text from # Main Title down to More details here. becomes one single markdown cell in the notebook view.
Proposed solution
It would make the notebook experience much more organized and granular if the parser could treat each markdown heading (#, ##, ###, etc.) as the beginning of a new markdown cell.
With this change, the example above would be parsed into three distinct markdown cells:
- A cell containing
# Main Titleand its introduction paragraph. - A cell containing
## Section 1: Setupand its paragraph. - A cell containing
### Subsection 1.1and its paragraph.
This would align mdlab more closely with the user experience of other notebook interfaces (like Jupyter) and would make it much easier to read, edit, collapse, and reorder sections of a large document.
Thank you for considering this improvement.