File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 55
55
references (available via ` C-c C-c u ` ). ([ GH-322 ] [ ] )
56
56
- Add ` markdown-insert-table ` (` C-c C-s t ` ) for interactive
57
57
table insertion. ([ GH-369 ] [ ] )
58
+ - Add ` markdown-kill-outline ` and ` markdown-kill-block `
59
+ functions.
58
60
59
61
* Improvements:
60
62
Original file line number Diff line number Diff line change @@ -4817,6 +4817,20 @@ text to kill ring), and list items."
4817
4817
(t
4818
4818
(user-error "Nothing found at point to kill")))))
4819
4819
4820
+ (defun markdown-kill-outline ()
4821
+ "Kill visible heading and add it to `kill-ring'."
4822
+ (interactive)
4823
+ (save-excursion
4824
+ (markdown-outline-previous)
4825
+ (kill-region (point) (progn (markdown-outline-next) (point)))))
4826
+
4827
+ (defun markdown-kill-block ()
4828
+ "Kill visible code block, list item, or blockquote and add it to `kill-ring'."
4829
+ (interactive)
4830
+ (save-excursion
4831
+ (markdown-backward-block)
4832
+ (kill-region (point) (progn (markdown-forward-block) (point)))))
4833
+
4820
4834
4821
4835
;;; Indentation ====================================================================
4822
4836
You can’t perform that action at this time.
0 commit comments