-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add markdown-edit-code-block-default-mode
Based on a suggestion in GH-251.
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Been a while since I've looked at elisp but it seems to me like this assumes that
markdown-get-lang-mode
will always find a mode for the givenlang
, which isn't the case. If I'm right, this may be the cause of #284. I think either:nil
if none was written in the codeblock and so it should fallback ontomarkdown-edit-code-block-default-mode
(as it's doing right now)markdown-get-lang-mode
may returnnil
, in which case it should fallback ontomarkdown-edit-code-block-default-mode
markdown-get-lang-mode
returns, and so it should be used