vscode-markdown
vscode-markdown copied to clipboard
Toggle math bug: Block quote is not respected
Problem
When using the macro ⌘+M
for generating
-
$$
-
$$\n\n$$
-
$$ $$
It works unless you are at the end of a blockquote.
How to reproduce
> blockquote
> |
Place your cursor where '|' is in the above code block and press the "⌘+M" macro three times.
From here you can see that the sequence of events is as follows
> blockquote
> $|$
> blockquote
> $$
|
$$
but after you press it again it goes to this
> blockquote
> $$
$|$
$$
Instead of this
> blockquote
> $$ | $$
environment
I am on a mac on macOS Big Sur.
errors in console
[Extension Host] (node:4926) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension host terminated unexpectedly. Code: null Signal: SIGABRT
Extension host terminated unexpectedly.
I'm afraid the current solution is somewhat strange. The 2nd step still produces two math blocks, which should be avoided.
<!-- 1 -->
> $$
<!-- 2 -->
> $$
$$
<!-- 3 -->
> $$ $$
I prefer #951. It's safe.
<!-- 1 -->
> $$
<!-- 2 -->
> $$
>
> $$