* markdown-mode
now requires Emacs 24.3 or later.
markdown-insert-link
, bound to C-c C-l. As such, the previous separate link insertion keybindings have been removed: C-c C-a l, C-c C-a L, C-c C-a r, and C-c C-a u.markdown-insert-image
, bound to C-c C-i. As such, the previous separate image insertion keybindings have been removed: C-c C-i i and C-c C-i I.markdown-jump
, previously bound to C-c C-l, has been moved to C-c C-d and rebranded as markdown-do
, which attempts to do something sensible with the object at the point.markdown-link-link
to markdown-link-url
for clarity.markdown-blockquote-face
is now applied to the entire blockquote, including the leading >
, so it can be used to apply a background if desired.markdown-regex-header
, groups 4 and 6 now include whitespace surrounding hash marks in atx headings.~~strikethrough~~
is now supported in markdown-mode
in addition to gfm-mode
.markdown-hr-face
. Previously, markdown-header-delimiter-face
was used.markdown-fill-forward-paragraph-function
to markdown-fill-forward-paragraph
.markdown-footnote-face
to markdown-footnote-marker-face
.markdown-insert-inline-link-dwim
and markdown-insert-reference-link-dwim
have been combined and replaced with markdown-insert-link
.markdown-exdent-region
and markdown-exdent-or-delete
are now named markdown-outdent-region
and markdown-outdent-or-delete
, respectively.markdown-insert-image
(for inline images) has been renamed markdown-insert-inline-image
and it now takes three arguments (previously one optional argument). markdown-insert-reference-image
now takes four arguments (previously none).New features:
markdown-hide-markup
, which determines whether to hide or otherwise beautify Markdown markup. For example, for inline links the brackets, URL, and title will be hidden and only the (clickable) link text will remain. The URL can be seen by hovering with the mouse pointer and edited by deleting one of the invisible brackets or parentheses. This can be toggled interactively using C-c C-x C-m (markdown-toggle-markup-hiding
). This setting supersedes URL hiding (below). (GH–130)markdown-list-item-bullets
. (GH–130)markdown-blockquote-display-char
, markdown-hr-display-char
, and markdown-definition-display-char
.markdown-hide-urls
. URLs will appear as [link](∞)
instead of [link](http://perhaps.a/very/long/url/)
. To change the placeholder character used, set markdown-url-compose-char
. This feature can be toggled using C-c C-x C-l (markdown-toggle-url-hiding
). If full markup hiding (above) is enabled, then URL hiding has no additional effect.markdown-fontify-code-blocks-natively
, which determines whether to fontify code in code blocks using the native major mode. This only works for fenced code blocks where the language is specified where we can automatically determine the appropriate mode to use. The language to mode mapping may be customized by setting the variable markdown-code-lang-modes
. (GH–123, GH–185)edit-indirect
package is installed, C-c ’ (markdown-edit-code-block
) can be used to edit a code block in an indirect buffer in the native major mode. Press C-c C-c to commit changes and return or C-c C-k to cancel.markdown-toggle-fontify-code-blocks-natively
).markdown-forward-page
(C-x ]), markdown-backward-page
(C-x [), markdown-mark-page
(C-x C-p), and markdown-narrow-to-page
(C-x n p). (GH–191)markdown-mark-subtree
(C-c C-M-h) and markdown-narrow-to-subtree
(C-x n s). (GH–191)markdown-backward-paragraph
) and M-} (markdown-forward-paragraph
). To mark a paragraph, use M-h (markdown-mark-paragraph
). These move at a more granular level than the block movement commands. (GH–191)subtree
as a possible value for markdown-reference-location
and markdown-footnote-location
.H~2~0
) and superscripts (e.g., 334^10^
). Thanks to Syohei Yoshida for a patch on which this is based. (GH–134)<<(file)
, <<[title](file)
, <<[file]
, and <<{file}
.markdown-insert-link
. (GH–199)markdown-do
, which is a replacement for C-c C-l, markdown-jump
. In addition to jumping between reference/footnote labels and definitions, it also toggles GFM checkboxes.markdown-spaces-after-code-fence
to control the number of spaces inserted after a code fence (```
). Thanks to Philipp Stephani for a patch.markdown-gfm-uppercase-checkbox
which, when non-nil, uses [X]
to complete task list items instead of [x]
. Thanks to Paul Rankin for a patch. (GH–236)C-c C-s
) and toggles (C-c C-x
). These may be disabled if desired by setting markdown-enable-prefix-prompts
to nil
.说实话,看得我头疼
手机扫一扫
移动阅读更方便
你可能感兴趣的文章