# Is it possible to programmatically wrap markdown cells?

**URL:** https://discourse.jupyter.org/t/is-it-possible-to-programmatically-wrap-markdown-cells/1529
**Category:** General
**Created:** [July 1, 2019, 4:43pm UTC](https://discourse.jupyter.org/t/is-it-possible-to-programmatically-wrap-markdown-cells/1529 "2019-07-01T16:43:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mwcraig](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mwcraig/32/855_2.png) [@mwcraig](https://discourse.jupyter.org/u/mwcraig)
#### Post date: [July 1, 2019, 4:43pm UTC](https://discourse.jupyter.org/t/is-it-possible-to-programmatically-wrap-markdown-cells/1529/1 "2019-07-01T16:43:49Z")

</div>

I have a bunch notebooks whose markdown text I’d like to wrap, ideally without opening each notebook. Any suggestions? 😀

---

<div class="post-metadata">

### Author: ![psychemedia](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/psychemedia/32/24_2.png) [@psychemedia](https://discourse.jupyter.org/u/psychemedia)
#### Post date: [July 1, 2019, 5:08pm UTC](https://discourse.jupyter.org/t/is-it-possible-to-programmatically-wrap-markdown-cells/1529/2 "2019-07-01T17:08:46Z")

</div>

The `nbformat` package allows you to programmatically read and parse notebook files. eg I used it [here](https://github.com/innovationOUtside/TM351_forum_examples/blob/f8a2ceb5b364ceaa729e2928fcbbae190d605b00/Get%20Contents.ipynb) to demo how to pull out headers from markdown cells.
