8 Commits

Author SHA1 Message Date
Wolfgang Faust
e9766a8d38
feat: markdown-basics snippets: quote all lines
Previously, this snippet just inserted "> " before the selected text, which is
not very useful; particularly, when multiple paragraphs are selected, this will
only quote the first one.

Instead, we now prefix every line in the selection with "> ", so that it will
all be quoted regardless of how many paragraphs are taken.

This does also change the behavior in the case of no selected text slightly;
previously it would insert "> []" (where "[]" indicates the selection; that is,
it would put the insertion point after the quote marker). It now inserts
"[> ]" instead (that is, the same text but it's all selected) so if you start
typing you'll wind up removing the quote marker. Since using this snippet *not*
on a selection seems like a roundabout way of writing "> " this seems like an
acceptable tradeoff.
2025-04-17 18:08:30 -07:00
Johann Pardanaud
6a6df96d5e
Improve UX for markdown snippets (#146431)
Allow to directly paste a link markdown when using the `link` and `image` snippets
2022-03-31 09:44:24 -07:00
heartacker
d7ca9f570f
add math snippet (#142697) 2022-02-15 17:41:24 -08:00
Matt Bierner
14f72608c0
Remove definition list snippet
#134611

This is non-standard md and was incorrectly added. Instead the snippet should be included by whatever extension introduces support for this syntax
2021-10-08 12:24:20 -07:00
Matt Bierner
aec6ee09fa
Remove eslint disablement in file
" -> '
2021-09-02 16:58:01 -07:00
Dhruva Srinivas
05049f7fbb
Add Definition list to Markdown Snippets (#110026) 2020-11-05 11:21:35 -08:00
Rob OLeary
0bb98bf686
Add more snippets for basic syntax (#105174) 2020-08-21 11:07:24 -07:00
Martin Aeschlimann
d5e12a12dd Use code-snippet suffix for extension snippets. Fixes #94625 2020-04-08 10:12:23 +02:00