Mode Penurunan GitHub

19

Apakah ada mode Emacs untuk GitHub Flavoured Markdown?

GitHub Flavoured Markdown menambahkan sejumlah fitur ke Markdown tradisional: penanganan garis bawah, url tautan otomatis, dicoret, dan tabel. Akan menyenangkan untuk memiliki mode Emacs yang mendukung penambahan ini (terutama tabel).

Matthew Piziak
sumber

Jawaban:

22

Ada gfm-mode(yang merupakan bagian dari markdown-mode.el ). Dari komentar dalam file:

;;; GitHub Flavored Markdown:

;; A [GitHub Flavored Markdown][GFM] (GFM) mode, `gfm-mode', is also
;; available.  The GitHub implementation of differs slightly from
;; standard Markdown.  The most important differences are that
;; newlines are significant, triggering hard line breaks, and that
;; underscores inside of words (e.g., variable names) need not be
;; escaped.  As such, `gfm-mode' turns off `auto-fill-mode' and turns
;; on `visual-line-mode' (or `longlines-mode' if `visual-line-mode' is
;; not available).  Underscores inside of words (such as
;; test_variable) will not trigger emphasis.
;;
;; Wiki links in this mode will be treated as on GitHub, with hyphens
;; replacing spaces in filenames and where the first letter of the
;; filename capitalized.  For example, `[[wiki link]]' will map to a
;; file named `Wiki-link` with the same extension as the current file.
;;
;; GFM code blocks, with optional programming language keywords, will
;; be highlighted.  They can be inserted with `C-c C-s P`.  If there
;; is an active region, the text in the region will be placed inside
;; the code block.  You will be prompted for the name of the language,
;; but may press enter to continue without naming a language.
Wilfred Hughes
sumber
mode penurunan harga sudah pasti bagus, tetapi apakah itu bisa melakukan apa-apa terhadap tabel? Pertanyaannya secara khusus memilih yang sedikit keluar.
Clément