@@ -61,7 +61,7 @@ using `package.el`. First, configure `package.el` and the MELPA Stable
61
61
repository by adding the following to your ` .emacs ` , ` init.el ` ,
62
62
or equivalent startup file:
63
63
64
- ``` lisp
64
+ ``` emacs- lisp
65
65
(require 'package)
66
66
(add-to-list 'package-archives
67
67
'("melpa-stable" . "https://stable.melpa.org/packages/"))
@@ -79,7 +79,7 @@ then you can automatically install and configure `markdown-mode` by
79
79
adding a declaration such as this one to your init file (as an
80
80
example; adjust settings as desired):
81
81
82
- ``` lisp
82
+ ``` emacs- lisp
83
83
(use-package markdown-mode
84
84
:ensure t
85
85
:mode ("README\\.md\\'" . gfm-mode)
@@ -99,7 +99,7 @@ save the file where Emacs can find it (i.e., a directory in your
99
99
` load-path ` ). You can then configure ` markdown-mode ` and ` gfm-mode `
100
100
to load automatically by adding the following to your init file:
101
101
102
- ``` lisp
102
+ ``` emacs- lisp
103
103
(autoload 'markdown-mode "markdown-mode"
104
104
"Major mode for editing Markdown files" t)
105
105
(add-to-list 'auto-mode-alist
@@ -133,7 +133,7 @@ repository as above or install markdown-mode from
133
133
If you clone the repository directly, then make sure that Emacs can
134
134
find it by adding the following line to your startup file:
135
135
136
- ``` lisp
136
+ ``` emacs- lisp
137
137
(add-to-list 'load-path "/path/to/markdown-mode/repository")
138
138
```
139
139
@@ -350,7 +350,7 @@ prefix. The most commonly used commands are described below.
350
350
preview window to appear at the bottom or right, you can
351
351
customize ` markdown-split-window-direction ` .
352
352
353
- ``` lisp
353
+ ``` emacs- lisp
354
354
;; Set custom markdown preview function
355
355
(setq markdown-live-preview-window-function #'my-markdown-preview-function)
356
356
@@ -952,18 +952,17 @@ customization screen.
952
952
953
953
[Marked 2]: https://itunes.apple.com/us/app/marked-2/id890031187?mt=12&uo=4&at=11l5Vs&ct=mm
954
954
955
- ## Extensions
956
-
955
+ ## Wiki Links Customization
957
956
Besides supporting the basic Markdown syntax, Markdown Mode also
958
957
includes syntax highlighting for `[[Wiki Links]]`. This can be
959
958
enabled by setting `markdown-enable-wiki-links` to a non-nil value.
960
- Wiki links may be followed by pressing <kbd>C-c C-o</kbd> when the point
961
- is at a wiki link. Use <kbd>M-p</kbd> and <kbd>M-n</kbd> to quickly jump to the
962
- previous and next links (including links of other types).
959
+
963
960
Aliased or piped wiki links of the form `[[link text|PageName]]`
964
- are also supported. Since some wikis reverse these components, set
961
+ are supported. Since some wikis reverse these components, set
965
962
`markdown-wiki-link-alias-first` to nil to treat them as
966
- `[[PageName|link text]]`. If `markdown-wiki-link-fontify-missing`
963
+ `[[PageName|link text]]`.
964
+
965
+ If `markdown-wiki-link-fontify-missing`
967
966
is also non-nil, Markdown Mode will highlight wiki links with
968
967
missing target file in a different color. By default, Markdown
969
968
Mode only searches for target files in the current directory.
@@ -974,18 +973,31 @@ This value type is a symbol list. Possible values are
974
973
- `parent-directories` : search in parent directories
975
974
- `project` : search under project root
976
975
977
- [SmartyPants][] support is possible by customizing `markdown-command`.
976
+ ## Extensions
977
+ ### SmartyPants
978
+
979
+ [SmartyPants][] is a free tool for easily translating plain ASCII punctuation
980
+ characters into "smart" typographic punctuation HTML entities. It can perform
981
+ the following transformations:
982
+ - straight quotes ( " and ' ) into “curly” quote HTML entities
983
+ - backticks-style quotes (``like this'') into “curly” quote HTML entities
984
+ - dashes (“--” and “---”) into en- and em-dash entities
985
+ - three consecutive dots (“...”) into an ellipsis entity
986
+
987
+ SmartyPants support is possible by customizing `markdown-command`.
978
988
If you install `SmartyPants.pl` at, say, `/usr/local/bin/smartypants`,
979
989
then you can set `markdown-command` to `"markdown | smartypants"`.
980
990
You can do this either by using <kbd>M-x customize-group markdown</kbd>
981
991
or by placing the following in your `.emacs` file:
982
992
983
- ```lisp
993
+ ```emacs- lisp
984
994
(setq markdown-command "markdown | smartypants")
985
995
```
986
996
987
997
[ SmartyPants ] : http://daringfireball.net/projects/smartypants/
988
998
999
+ ### LaTeX Mathematical Expressions
1000
+
989
1001
Syntax highlighting for mathematical expressions written
990
1002
in LaTeX (only expressions denoted by ` $..$ ` , ` $$..$$ ` , or ` \[..\] ` )
991
1003
can be enabled by setting ` markdown-enable-math ` to a non-nil value,
@@ -1068,7 +1080,7 @@ by `markdown-mode` and `gfm-mode` as described below.
1068
1080
for line wrapping in buffers. You can do this with a
1069
1081
` gfm-mode-hook ` as follows:
1070
1082
1071
- ``` lisp
1083
+ ``` emacs- lisp
1072
1084
;; Use visual-line-mode in gfm-mode
1073
1085
(defun my-gfm-mode-hook ()
1074
1086
(visual-line-mode 1))
0 commit comments