branch: elpa/markdown-mode commit 6fc5904257531fef6a7b48bd9fb3b6e6b6c3af8b Merge: 0a522bf682 16b783fb8a Author: Shohei YOSHIDA <syo...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #887 from diasbruno/patch-1 added CommonMark (cmark) on the markdown-command list. --- CHANGES.md | 3 +++ README.md | 2 +- markdown-mode.el | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1a5c2326ad..d3f62d0890 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,7 @@ # Markdown Mode 2.8 +*Under development* + * **Breaking changes:** - GNU Emacs 28.1 or later is required. @@ -9,6 +11,7 @@ * Improvements: - Support drag and drop features on Windows and multiple files' drag and drop + - Added cmark and cmark-gfm to the markdown command list. # Markdown Mode 2.7 diff --git a/README.md b/README.md index e2bacac179..903a903d40 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ a complete list of keybindings is available using <kbd>C-h m</kbd> _Note:_ To use all of the features of `markdown-mode`, you'll need to install the Emacs package itself and also have a local Markdown -processor installed (e.g., Markdown.pl, MultiMarkdown, or Pandoc). +processor installed (e.g., Markdown.pl, MultiMarkdown, Pandoc, or CommonMark). The external processor is not required for editing, but will be used for rendering HTML for preview and export. After installing the Emacs package, be sure to configure `markdown-command` to point diff --git a/markdown-mode.el b/markdown-mode.el index a914eb3741..5386c1e7c4 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -108,7 +108,7 @@ Any changes to the output buffer made by this hook will be saved.") :group 'text :link '(url-link "https://jblevins.org/projects/markdown-mode/")) -(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown_py") +(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown_py" "cmark" "cmark-gfm") when (executable-find cmd) return (file-name-nondirectory it)))) (or command "markdown"))