mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Fix bug in heading detection code.
This commit is contained in:
parent
d52cc9a662
commit
9bfbf5544c
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ auto-execution mode flag in the connected buffer is `t'.")))
|
|||
(defun ein:preprocess-nb4-cell (cell-data)
|
||||
(let ((source (plist-get cell-data :source)))
|
||||
(when (and (string= (plist-get cell-data :cell_type) "markdown")
|
||||
(string-match "\\(^#*\\)" source))
|
||||
(string-match "\\(^#+\\)" source))
|
||||
(let ((heading-level (match-end 0)))
|
||||
(plist-put cell-data :cell_type "heading")
|
||||
(plist-put cell-data :level heading-level)
|
||||
|
|
Loading…
Add table
Reference in a new issue