Use triple-backtick block syntax for example blocks too

org-mode `#+BEGIN_EXAMPLE` blocks can (optionally) be tagged with a
language, so this will give them proper syntax highlighting on GitHub.
It still works when the language is unset, of course.
This commit is contained in:
Benjamin Staffin 2019-05-02 15:38:12 -04:00
parent 99f93011b0
commit bd85f6a56f

View File

@ -56,6 +56,7 @@
:translate-alist '((inner-template . org-gfm-inner-template) :translate-alist '((inner-template . org-gfm-inner-template)
(paragraph . org-gfm-paragraph) (paragraph . org-gfm-paragraph)
(strike-through . org-gfm-strike-through) (strike-through . org-gfm-strike-through)
(example-block . org-gfm-example-block)
(src-block . org-gfm-src-block) (src-block . org-gfm-src-block)
(table-cell . org-gfm-table-cell) (table-cell . org-gfm-table-cell)
(table-row . org-gfm-table-row) (table-row . org-gfm-table-row)
@ -92,6 +93,10 @@ channel."
(suffix "```")) (suffix "```"))
(concat prefix code suffix))) (concat prefix code suffix)))
;;;; Example Block
(defalias 'org-gfm-example-block #'org-gfm-src-block)
;;;; Strike-Through ;;;; Strike-Through