New answers tagged

1

In Markdown, two spaces at the end of the line cause a hard line break. markdown-mode highlights those for you, because otherwise they are indistinguishable from soft line breaks. It seems you have trailing white space in your diagram. However, this is a bug since it shouldn't apply that face to trailing whitespace inside a code block.


0

Does this do what you want? (defun collapse () (interactive) (replace-regexp "> *[\n]+ *<" "><")) Edited: Just on selection: (defun collapse () (interactive (if (use-region-p) (progn (setq start (region-beginning)) (setq end (region-end)) ...


Top 50 recent answers are included