dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.68k stars 252 forks source link

Toggle italic fails #751

Open funnym0nk3y opened 3 years ago

funnym0nk3y commented 3 years ago

Please select the area your Bug applys to. (Multiple selections are Possible)

Describe the bug

Dendron contributes the extension "Dendron Markdown Shortcuts", which contributes the command toggle italic. According to markdown best practices italics should be surrounded with one asterisk. Changing the setting to do that breaks the insertion of an empty italc character sequence.

Running the contributed command: 'md-shortcut.toggleItalic' failed.

On the original extension repo this is known, but unfixed since 2019.

To Reproduce

Steps to reproduce the behavior:

  1. Place the cursor somewhere, don't mark anything
  2. Toggle italic

Additional context

I know this isn't the original repo, but since there is no fix available since 2019 and dendron uses that extension, I thought of giving it a shot here. This raises the general question whether to base dendron of 3rd party extensions.

kpathakota commented 3 years ago

Yeah, this is a good find. Easy to repro but it is in a dependency. I think we will eventually want to update ours to handle this corner case. However the workaround of selecting something does seem to work.

kpathakota commented 3 years ago

@all-contributors add @funnym0nk3y for bug

allcontributors[bot] commented 3 years ago

@kpathakota

I've put up a pull request to add @funnym0nk3y! :tada: