branch: elpa/markdown-mode
commit 38c5854fd30901bc436683a7ec38c36fdc98ed57
Author: Bruno Dias <dias.h.br...@gmail.com>
Commit: Bruno Dias <dias.h.br...@gmail.com>

    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..e8d87dc89f 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,3 +1,6 @@
+*   Improvements:
+    - Added cmark and cmark-gfm to the markdown command list.
+
 # Markdown Mode 2.8
 
 *   **Breaking changes:**
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"))

Reply via email to