manual for emacs markdown-mode(English)
markdown-mode
now requires Emacs 24.3 or later.- Markup insertion and replacement keybindings under C-c C-s (s for style) have been revised to make them easier to remember. Now, when the prefix C-c C-s is pressed, a short minibuffer help prompt is presented as a reminder of a few of the most frequently used keys. The major changes are that bold is now inserted with b (previously s) and italic is now i (previously e). As a result, blockquote is now q (previously b) and strikethrough markup is inserted with s (previously d). Press C-c C-s C-h for a complete list of markup insertion keybindings. Heading insertion commands are also now under C-c C-s.
- Link insertion and editing has been consolidated into one command,
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. - Image insertion and editing has been consolidated into one command,
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. - Footnote and wiki link insertion have been moved to the markup insertion prefix, as C-c C-s f and C-c C-s w.
- The list and outline editing commands have been removed from the top-level positions (previously M-LEFT, M-RIGHT, M-UP, M-DOWN) and moved to major mode keybindings under C-c to C-c LEFT, C-c RIGHT, C-c UP, and C-c DOWN, respectively. (GH–164)
- The list and outline editing commands have also been unified so that they all operate on entire subtrees of list items and subtrees of atx headings, symmetrically. Previously there were separate commands for editing heading subtrees, but promoting a single section is easy enough by directly inserting or removing a hash mark or using the markup replacement commands.
- Jumping between references and reference definitions via
markdown-jump
, previously bound to C-c C-l, has been moved to C-c C-d and rebranded asmarkdown-do
, which attempts to do something sensible with the object at the point. - Rename internal
markdown-link-link
tomarkdown-link-url
for clarity. - The old inline image toggling command C-c C-i C-t has been removed and replaced C-c C-x C-i in order to allow for the new interactive image insertion command at C-c C-i. Toggling keybindings are currently being grouped under C-c C-x.
markdown-blockquote-face
is now applied to the entire blockquote, including the leading>
, so it can be used to apply a background if desired.- In
markdown-regex-header
, groups 4 and 6 now include whitespace surrounding hash marks in atx headings. - Font lock for
~~strikethrough~~
is now supported inmarkdown-mode
in addition togfm-mode
. - Introduced a new face for horizontal rules:
markdown-hr-face
. Previously,markdown-header-delimiter-face
was used. - Markdown Mode is now distributed under the GNU GPL version 3 or later.
- Rename
markdown-fill-forward-paragraph-function
tomarkdown-fill-forward-paragraph
. - Rename
markdown-footnote-face
tomarkdown-footnote-marker-face
. - Functions
markdown-insert-inline-link-dwim
andmarkdown-insert-reference-link-dwim
have been combined and replaced withmarkdown-insert-link
. - Functions
markdown-exdent-region
andmarkdown-exdent-or-delete
are now namedmarkdown-outdent-region
andmarkdown-outdent-or-delete
, respectively. - The non-interactive image insertion commands have been refactored to mirror the corresponding link insertion commands.
markdown-insert-image
(for inline images) has been renamedmarkdown-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:
- Markup hiding: Add a custom variable
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) - Unicode bullets are used to replace ASCII list item markers for unordered lists when markup hiding is enabled. The list of characters used, in order of list level, can be specified by setting the variable
markdown-list-item-bullets
. (GH–130) - When markup hiding is enabled, the characters used for replacing certain markup can be changed by customizing the corresponding variables:
markdown-blockquote-display-char
,markdown-hr-display-char
, andmarkdown-definition-display-char
. - URL and reference label hiding: URLs for inline links and labels for reference links can now be hidden if desired. This is configurable via
markdown-hide-urls
. URLs will appear as[link](∞)
instead of[link](http://perhaps.a/very/long/url/)
. To change the placeholder character used, setmarkdown-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. - Native code block font-lock: Add a custom variable
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 variablemarkdown-code-lang-modes
. (GH–123, GH–185) - When the
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. - Add command C-c C-x C-f for toggling native font lock for code blocks (
markdown-toggle-fontify-code-blocks-natively
). - Add “page” movement, marking, and narrowing commands, where a “page” in Markdown is defined to be a top-level subtree:
markdown-forward-page
(C-x ]),markdown-backward-page
(C-x [),markdown-mark-page
(C-x C-p), andmarkdown-narrow-to-page
(C-x n p). (GH–191) - Add subtree marking and narrowing functions:
markdown-mark-subtree
(C-c C-M-h) andmarkdown-narrow-to-subtree
(C-x n s). (GH–191) - Add syntax-aware Markdown paragraph movement commands: M-{ (
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) - The previous block movement and marking commands are now at C-M-{, C-M-}, and C-c M-h. In terms of lists, paragraph movement commands now stop at each list item while block commands move over entire lists. (GH–191)
- Add
subtree
as a possible value formarkdown-reference-location
andmarkdown-footnote-location
. - Ask flyspell to ignore words in URLs, code fragments, comments, and reference labels.
- Make inline links, reference links, angle bracket URLs, and plain URLs clickable.
- Add an additional keybinding for toggling inline image display, C-c C-x C-i.
- Add a keybinding for toggling LaTeX math (_e_quation) support: C-c C-x C-e.
- Support Leanpub blocks (asides, info blocks, warnings, etc.). These are simple extensions of the usual blockquote syntax.
- Font lock, with markup hiding, for subscripts (e.g.,
H~2~0
) and superscripts (e.g.,334^10^
). Thanks to Syohei Yoshida for a patch on which this is based. (GH–134) - Add basic font-lock support for inline attribute lists or inline identifiers used by Pandoc, Python Markdown, PHP Markdown Extra, Leanpub, etc.
- Add basic font-lock support for Leanpub section identifiers and page breaks.
- Add basic font-lock support for common file inclusion syntax:
<<(file)
,<<[title](file)
,<<[file]
, and<<{file}
. - Add font lock support for Pandoc inline footnotes. (GH–81)
- Raise footnote markers and inline footnote text, and optionally hide markup.
- Filling with now respects Pandoc line blocks. (GH–144)
- Add interactive link editing and insertion command
markdown-insert-link
. (GH–199) - Added C-c C-d,
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. - Outline movement keys C-c C-p, C-c C-n, C-c C-f, C-c C-b, and C-c C-u now move between list items, when the point is in a list, and move between headings otherwise.
- New customization option
markdown-spaces-after-code-fence
to control the number of spaces inserted after a code fence (```
). Thanks to Philipp Stephani for a patch. - New customization option
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) - Add prefix-specific prompts for styles (
C-c C-s
) and toggles (C-c C-x
). These may be disabled if desired by settingmarkdown-enable-prefix-prompts
tonil
.
- Markup hiding: Add a custom variable
转载于https://jblevins.org/projects/markdown-mode/rev-2-3
- 说实话,看得我头疼
manual for emacs markdown-mode(English)的更多相关文章
- emacs安装及配置
目录 平台 安装 基本配置 配置文件结构 elpa仓库管理 主题配色 字体显示配置(解决中文卡顿) 插件配置 markdown 简介 markdown-mode markdown-toc org导出m ...
- Markdown的使用简介
以前有摘抄过,然而onenote速度感人,现在又主要用Linux,所以在这里备份一下,好方便用 Linux下推荐remakeble软件,或者直接sublime text,再或者vim,反正我不会ema ...
- linux下10款markdown软件
原文:https://linux.cn/article-7623-1.html 在这篇文章中,我们会点评一些可以在 Linux 上安装使用的最好的 Markdown 编辑器. 你可以在 Linux 平 ...
- my emacs configuration
modified from https://github.com/flyingmachine/emacs-for-clojure ;;;; ;; Packages ;;;; ;; Define pac ...
- Github上的1000多本免费电子书重磅来袭!
Github上的1000多本免费电子书重磅来袭! 以前 StackOverFlow 也给出了一个免费电子书列表,现在在Github上可以看到时刻保持更新的列表了. 瞥一眼下面的书籍分类目录,你就能 ...
- Github 的一个免费编程书籍列表
Index Ada Agda Alef Android APL Arduino ASP.NET MVC Assembly Language Non-X86 AutoHotkey Autotools A ...
- linuxtoy.org资源
https://linuxtoy.org/archives.html Archives 在 Android 系统上安装 Debian Linux 与 R (2015-07-14) Pinos:实现摄像 ...
- IAB303 Data Analytics Assessment Task
Assessment TaskIAB303 Data Analyticsfor Business InsightSemester I 2019Assessment 2 – Data Analytics ...
- Cocos creator之javascript闭包
.什么是闭包? 闭包,官方对闭包的解释是:一个拥有许多变量和绑定了这些变量的环境的表达式(通常是一个函数),因而这些变量也是该表达式的一部分.闭包的特点: 1. 作为一个函数变量的一个引用,当函数返回 ...
随机推荐
- BootstrapDialog.show - 提示信息对话框
外文资料:http://nakupanda.github.io/bootstrap3-dialog/ (1)最简单的实现方式: BootstrapDialog.show({ message: 'Hi ...
- PL/SQL 美化器&规则解释&优化代码
前言 PLSQL有非常强大的自定义设置功能,比如美化文件规则, 使用者可以自行定义编辑规则,以便更好的优化SQL语句,增加可读性. 例如以下的部分代码,又长,分段不好,空格太多,结构散乱,还没有注释. ...
- SpringCloud 断路器之Hystrix
Hystrix-断路器 在分布式环境中,许多服务依赖项中的一些必然会失败.Hystrix是一个库,通过添加延迟容忍和容错逻辑,帮助你控制这些分布式服务之间的交互.Hystrix通过隔离服务之间的访问点 ...
- 只推荐一本 JavaScript 书,你推荐哪本?
嗨,我是 Martin.最近为了统一社区称谓,都换成 Martin Ager Adams. 前言 前端世界,技术层数不穷.尽管更新速度已经放缓,刚入门的票友总还是鸭梨山大. 前端三剑客 -- HTML ...
- 一文说清 KubeSphere 容器平台的价值
KubeSphere 作为云原生家族 后起之秀,开源近两年的时间以来收获了诸多用户与开发者的认可.本文通过大白话从零诠释 KubeSphere 的定位与价值,以及不同团队为什么会选择 KubeSphe ...
- Intellij idea2020永久激活,亲测可用!!!(持续更新)
DEA 2020 破解 IntelliJ IDEA 2020最新激活码(亲测有效,可激活至 2089 年,持续更新~) 申明:本教程 IntelliJ IDEA 破解补丁.激活码均收集于网络,请勿商用 ...
- SQL基础随记3 范式 键
SQL基础随记3 范式 键 什么是范式?哈,自己设计会使用但是一问还真说不上来.遂将不太明晰的概念整体下 什么是 & 分类 范式(NF),一种规范,设计数据库模型时对关系内部各个属性之间的 ...
- django 缓存(memcached)
Django提供了6种缓存方式 开发调试缓存 内存缓存 文件缓存 数据库缓存 Memcache缓存(使用python-memcached模块) Memcache缓存(使用pylibmc模块) 常使用的 ...
- iOS应用千万级架构:MVVM框架
业务模块内的MVC和MVVM架构 目前,唯品会中MVC和MVVM架构并存,后期会偏重于MVVM架构的使用. MVC架构 Model:程序中要操纵的实际对象的抽象,为Controller提供经过抽象的业 ...
- Django---进阶2
目录 数据的查,改,删 django orm中如何创建表关系 django请求生命周期流程图(必会) 路由层 路由匹配 无名分组 有名分组 无名有名是否可以混合使用 反向解析 作业 数据的查,改,删 ...