Releases: jrblevin/markdown-mode
Releases · jrblevin/markdown-mode
markdown-mode v2.6
-
Breaking changes:
-
New Features:
-
Improvements:
markdown
passesbuffer-file-name
as a parameter to
markdown-command
whenmarkdown-command-needs-filename
is
t
andmarkdown-command
is a function.- Support newer version Eldoc ships with Emacs 28.
- Don't spell-check against pandoc references. GH-572
- Support tree-sitter-based major modes used by Emacs 29.
- Highlight "geo" URI scheme GH-739
clear-image-cache
to make toggle inline image update.- Highlight autolinks if a scheme is valid and it is not registered in markdown-uri-types
GH-743 - Improve horizontal rule rendering in
markdown-view-mode
GH-753 - Don't load major-mode if it isn't in
auto-mode-alist
GH-761 - Improve
markdown-insert-table
prompt message GH-771 - Consider
major-mode-remap-alist
to determine major-mode for code blocks GH-787 - Set marker after footnote reference GH-793
- Improve putting text attribute for indented blocks GH-794
-
Bug fixes:
- Don't override table faces by link faces GH-716
- Fix invalid italic fontification after bold markupsGH-731
- Fix
markdown-live-preview-mode
fails wheneww-auto-rename-buffer
is non-nilGH-737 - Fix to mistake to handle the line as delimiter rowGH-747
- Fix wrong displaying horizontal rule in
markdown-view-mode
GH-747 - HTML-escape title in
markdown-add-xhtml-header-and-footer
markdown-xwidget-issue-9 - Fix wrong inline link parsing that has link titleGH-762
- Don't treat backslashes as escapes inside literal blocksGH-766 GH-768
- Fix
markdown-enter-key
doesn't delete empty checkbox listGH-786
markdown-mode v2.5
-
Breaking changes:
markdown-do
supports following link GH-666
This changes behavior ofmarkdown-do
at table
-
New features:
- Introduce
markdown-mouse-follow-link
variable GH-290 - Option to define a
markdown-link-make-text-function
function
to automatically define a default link text before prompting the user. - Option to inhibit the prompt for a tooltip text via
markdown-disable-tooltip-prompt
. - Introduce
markdown-ordered-list-enumeration
variable GH-587 - Search wiki link under project
- Add
markdown-insert-foldable-block
function GH-598 - Add
markdown-table-align-p
flag GH-625
Control table alignment after table operation - Support highlighting syntax like Obsidian, Quilt. GH-652
- Introduce
-
Improvements:
- Correct indirect buffer's indentation in
markdown-edit-code-block
GH-375 - Cleanup test code
- Strip query parameters from local file name at displaying inline images GH-511
- Improve forward/backward sentences which are wrapped markup characters GH-517
- Improve fontification for nested meta data GH-476
markdown-cycle
accepts universal-argument like org-cycle GH-530- Improve mode check for derived modes GH-532
- Improve for file which contains many comments GH-536
- Improve for file which contains many pre blocks GH-512
- Enable flyspell check at yaml metadataGH-560
- Clean up Makefile
- Support to display local image with percent encoding file path
- Add ability to resize inline image display (
markdown-toggle-inline-images
) without Imagemagick installed in the computer (emulating Org Mode) - Support including braces around the language specification in GFM code blocks
- Improve
markdown-insert-{bold,italic}
when region starts with spacesGH-613 - Disable buffer-read-only if possible when markdown-mode is called GH-622
- Generate the
defface
via a macro rather than a function. - Memoize
markdown--first-displayable
to avoid performance
problems. - Allow the use of
add-function
on
markdown-table-at-point-p-function
. - Comment out redundant bindings and use the more standard
RET
name forC-m
. - Give
markdown-table-at-point-p-function
a non-nil default.
Simplifymarkdown-table-at-point-p
accordingly. - Auto set
sh-shell
whenmarkdown-edit-code-block
enter indirect buffer withsh-mode
- Add value check and avoid raising the exception at
markdown-edit-code-block
GH-663 - Add NonGNU ELPA badge to README and website
- Support plus/negative(also Unicode minus sign) exponent in super script GH-346
- Correct indirect buffer's indentation in
-
Bug fixes:
- Fix issue with
nil
being returned frommarkdown-imenu-create-nested-index
[GH-578][] - Fix remaining flyspell overlay in code block or comment issue GH-311
- Fix inline URL regular expression which starts/ends with spaces GH-514
- Fix GFM italic fontification for one character GH-524
- Fix
markdown-table-forward-cell
at last column issue GH-522 - Fix GFM bold fontification with underscore issue GH-525
- Fix wrong fontification words between strong markups GH-534
- Fix wrong italic fontification just after code block GH-548
- Fix too indended list face issue GH-569
- Fix creating imenu index issue when there is no level-1 header tooGH-571
- Fix highlighting consecutive HTML commentsGH-584
- Fix
markdown-follow-thing-at-point
failing on subdir search GH-590 - Fix
markdown-table-backward-cell
so it always goes back a single cell - Fix
markdown-table-align
to detect delimiters surrounded by spaces - Fix customization for
markdown-mouse-follow-link
and
markdown-table-align-p
- Fix accessing locations beyond
point-max
in
markdown-syntax-propertize
- Set
syntax-propertize-extend-region-functions
buffer-locally
instead of globally - Modify only the buffer-local part of
syntax-propertize-extend-region-functions
. - Fix list highlighting issue in code block GH-631
- Fix exception when inserting code block at end of buffer GH-634
- Fix table operations when table column contains escaped vertical bars GH-635
- Fix issue that executing
markdown-table-sort-lines
via menu-bar with older Emacs(< 28) GH-641 - Fix wrong markdown table command issue in menu GH-639
- Fix table conversion issue GH-639
- Fix fill paragraph issue with setext heading GH-638
- Fix line break highlighting issue at end of buffer GH-621
- Fix URL highlighting which contains comma or parentheis GH-649
- Fix eldoc function issue with
markdown-toggle-url-hiding
GH-674
Thanks to Ta Quang Trung for a patch - Fix
markdown-enable-math
exception issue GH-676 - Fix
markdown-marginalize-headers
rendering in tty mode GH-677 - Fix table and list fontification GH-680
- Fix invalid code block highlighting GH-684
- Fix issue with
markdown-mode v2.4.
-
Breaking changes:
- GNU Emacs 25.1 or later is required. And xemacs support has been dropped
- Face variables, such as
markdown-italic-face
are now
obsolete. Use face names directly in code and customizations.
The face names themselves are unaffected, so this shouldn't
affect most users. - Delete obsoleted aliases
- Internal variables
markdown-font-lock-keywords-basic
and
gfm-font-lock-keywords
are now obsolete.
markdown-font-lock-keywords
is now used instead, but users
should usefont-lock-add-keywords
instead of modifying this
variable. markdown-mode
now adds entries to the beginning of
auto-mode-alist
rather than the end. If you were relying on
the previous behavior in order to override these entries, you
should fix the problem by following best practice and ensuring
that your user configuration is loaded after the autoloads for
markdown-mode
are evaluated. ([GH-331][], [GH-335][])- Point at the end of fenced code blocks is no-longer considered
part of the code block ([GH-#349][]). - Enable
markdown-fontify-code-blocks-natively
ingfm-view-mode
. ([GH-#451][])
-
New features:
- GFM task list item (checkbox) insertion with
C-c C-s [
, or
as a final fallback formarkdown-do
(C-c C-d
). Thanks to
Akinori Musha for a patch. (GH-229) - Optionally move leading atx heading markup to the left margin
whenmarkdown-marginalize-headers
is non-nil
. Thanks to
Alexis Gallagher for a patch. ([GH-272][], [GH-274][]) - Added pipe table editing features. Thanks to Dmitry Safronov
for a patch. (GH-171, [GH-266][]) - Font lock for HTML tags and attributes, with new faces
markdown-html-tag-name-face
,
markdown-html-tag-delimiter-face
,
markdown-html-attr-name-face
, and
markdown-html-attr-value-face
. ([GH-249][]) - Font lock for HTML entities, with a new face
markdown-html-entity-face
. - Scale down large inline images using
markdown-max-image-size
,
a cons cell of the form(max-width . max-height)
. - Added read-only viewing modes
markdown-view-mode
and
gfm-view-mode
with keymaps similar toview-mode
and
help-mode
. ([GH-296][]) - Optionally add footnote definitions to the end of the imenu
index usingmarkdown-add-footnotes-to-imenu
. (GH-235) - Add custom variables
markdown-xhtml-body-preamble
and
markdown-xhtml-body-epilogue
for wrapping additional XHTML
tags around the output. ([GH-280][], [GH-281][]) - Add
markdown-unused-refs
command to list and clean up unused
references (available viaC-c C-c u
). ([GH-322][]) - Add
markdown-insert-table
(C-c C-s t
) for interactive
table insertion. ([GH-369][]) - Add
markdown-kill-outline
andmarkdown-kill-block
functions. - Added
markdown-display-remote-images
for viewing remote
images. Thanks to Sean Allread for the patch. ([GH-378][]) markdown-back-to-heading
can be used as command ([GH-415][])
- GFM task list item (checkbox) insertion with
-
Improvements:
- Insert references before local variables. Thanks to Philipp
Stephani for a patch. (GH-216, [GH-262][]) - Allow
markdown-command
andmarkdown-open-command
to be
functions. ([GH-255][], [GH-263][]) - Save the buffer before running
markdown-open-command
and run
markdown-open-command
asynchronously. Thanks to Dmitry
Safronov for a patch. ([GH-248][]) - New user option
markdown-translate-filename-function
to translate
filenames when following file links. ([GH-268][], [GH-277][]) - Support double-backslash math delimiters. ([GH-270][])
- New user option
markdown-export-kill-buffer
to kill or preserve
HTML export output buffer. (GH-224) - Add custom variables
markdown-edit-code-block-default-mode
andmarkdown-fontify-code-block-default-mode
to specify default
modes for indirect editing and fontification of code blocks.
([GH-251][], [GH-303][]) - Insert-and-indirect-edit GFM code blocks simultaneously by
giving a prefix argument toC-c C-s C
. ([GH-251][]) - Improve package load time by deferring calls to
char-displayable-p
. ([GH-264][]) - Only raise footnotes when markup hiding is on.
Footnote display properties may now be customized via
markdown-footnote-display
. ([GH-247][]) - Customizable subscript and superscript display properties
viamarkdown-sub-superscript-display
. - Several font-lock performance improvements.
- Support horizontal rules consisting of underscores.
- Change default character encoding to UTF-8.
([GH-340][], [GH-350][]) - Support more markdown extensions same as Vim
- Complete link text from link labels at inserting link. ([GH-421][])
- Improve regular expression for inline attributes. ([GH-406][])
- Allow relative CSS stylesheets paths. ([GH-389][])
- Improve regular expression matching for inline attributes. ([GH-389][])
- If user set
display-buffer-alist
then usedisplay-buffer
. ([GH-413][]) - Add custom variable for opening image. ([GH-383][])
- Improve default
markdown-command
setting - Use markdown-command directly instead of 'sh -c' ([GH-319][])
- Use explicitly numbered group as possible for easy reading regexp
- Support list of strings of
markdown-command
- Apply
markdown-translate-filename-function
formarkdown-display-inline-images
([GH-422][]) - Implement own
filter-buffer-substring-function
formarkdown-view-mode
and
gfm-view-mode
([GH-493][]) - Improve triple backtick behavior with
electric-pair-mode
- Update code block language list
- Insert references before local variables. Thanks to Philipp
-
Bug fixes:
- No longer treat code fragments that are delimited with three
backquotes on each side as the beginning of a code block.
([GH-403][]) - Fix infloop caused by incorrect detection of end of code
blocks ([GH-349][]). - Remove GFM checkbox overlays when switching major modes.
(GH-238, [GH-257][]) - Don't test the value of the
composition
property to avoid
failing tests. ([GH-246][], [GH-258][]) - Fix types for
markdown-open-command
,markdown-uri-types
,
andmarkdown-hr-strings
defcustoms. ([GH-254][], [GH-259][]) - Don't insert trailing whitespace when inserting a blockquote.
(GH-227, [GH-260][]) - Make wiki link test work even when
/tmp
contains an
inaccessible subdirectory. ([GH-261][]) - Fix
markdown-inline-code-face
's:inherit
attribute.
([GH-252][]) - Fix type of customizable
markdown-css-paths
variable.
([GH-276][]) - Don't set
markdown-code-face
background color at package
load time. ([GH-273][]) - Don't clobber user specified font-lock keywords when toggling
features. (GH-222) - Fix font-lock for inline code inside italics and bold.
([GH-275][]) - Make code block language detection handle unspecified
or unknown code block languages. ([GH-284][]) - Fix precedence of inline code over inline links.
- Improve error reporting for
markdown
andmarkdown-open
.
([GH-291][]) - Fix M-RET binding for terminals. ([GH-317][])
- Do not fail displaying inline images on empty links. ([GH-320][])
- Fix off-by-one error in
markdown-inline-code-at-pos
.
([GH-313][]) - Fix bounds during inline comment syntax propertization. ([GH-327][])
- Fix wrong metadata highlighting. ([GH-437][])
- Fix wrong italic highlighting in HTML attributes. ([GH-410][])
- Fix markdown-follow-thing-at-point issue for continuous links. ([GH-305][])
- Fix wrong setting major-mode issue at following wiki link([GH-427][])
- Fix not consider
markdown-list-indent-width
issue([GH-405][]) - Fix URL open issue which contains end parentheses ([GH-408][])
- Follow link even if it is in header([GH-430][])
- Fix clean up list number issue([GH-392][])
- Fix insert markup functions in consecutive case([GH-283][])
- Fix hide markup issue in markdown/gfm-view-mode([GH-468][])
- Fix bold regexp issue([GH-325][])
- Fix italic and punctual character issue([GH-359][])
- Fix table align issue when column contains escaped bar([GH-308][])
- Fix nested block fill-paragraph issue([GH-366][])
- Fix table transpose issue with wiki link
- Fix indent-region for pre block(GH-228)
- Fix link highlight issue which contains escaped right bracket([GH-409][])
- Fix math inline single/double highlight issue([GH-352][])
- Fix markdown-table-forward-cell escaped vertical bar issue([GH-489][])
- Fix markdown-table-backward-cell escaped vertical bar issue
- Fix GFM italic markup issue([GH-448][])
- No longer treat code fragments that are delimited with three