-
Notifications
You must be signed in to change notification settings - Fork 167
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
Lines beginning with hash symbol in literal code blocks treated as headers #33
Comments
I think the new |
In (defun markdown-move-visible-header-common (move-fn arg)
(let ((blocks (markdown-collect-gfm-code-blocks)))
(funcall move-fn arg)
(while (markdown-gfm-code-block-p blocks (point))
(funcall move-fn arg))))
(defun markdown-next-visible-heading (arg)
(interactive "p")
(markdown-move-visible-header-common #'outline-next-visible-heading arg))
(defun markdown-next-visible-heading (arg)
(interactive "p")
(markdown-move-visible-header-common #'outline-previous-visible-heading arg)) I don't understand |
I sent PR #41. Please check it. |
Thanks for this report, @duncanburke, and thanks @syohex for the patch. As I mentioned in #41 I have been working on syntax table support for code blocks. In addition to helping with font lock, this is also related to the heading movement commands. I used #41 as a basis for the changes. So, this should be fixed in 5daa9fc. |
For the purposes of commands such as
outline-next-visible-heading
andoutline-forward-same-level
, it is not expected that lines beginning with the#
symbol in literal code blocks be treated as headers.For example:
The text was updated successfully, but these errors were encountered: