BETA Markdown editor auto-indents within HTML <tags> and uses tabs. BLECH!

Operating system

Linux

Joplin version

2.14.19

Desktop version info

Joplin 2.14.19 (prod, linux)

Client ID: 9959465eea794e60b1b95760c308ca91
Sync Version: 3
Profile Version: 46
Keychain Supported: No

Revision: 971c4e5

Backup: 1.4.1
Combine notes: 1.2.2
Conflict Resolution: 1.2.3
Favorites: 1.3.2
Folding in Code Mirror Editor: 2.0.1
Inline tags: 1.3.0
Inline TODO: 1.7.0
Note list (Preview): 0.4.1
Note overview: 1.7.1
Note Rename: 1.0.0
Note Tabs: 1.4.0
Quick Links: 1.3.2
Space Indenter: 0.2.2
Templates: 2.4.0

Editor

Markdown Editor

What issue do you have?

The markdown editor auto-indents when you do something like

<style>
    blah blah blah
</style>

I want that to stop. Even worse, it indents with a tab. I really want that to stop.

I kinda wish the Space Indenter plugin stepped in here and asserted its authority. Alas, it does not. I don't know if this is a Space Indenter bug or a markdown editor feature request.

In summary:

  1. I don't want the markdown editor to auto-indent. Ever.
  2. I don't want the markdown editor to use tabs when it does auto-indent. Ever.

So, is this a plugin ( @shikuz ) bug? Or a general feature request. Or both?

Thanks.
-t

P.S. The Space Indenter plugin has the option to strip all tabs and replace them with spaces upon note load. That's too brute-force for me because I do use tabs here and there on occasion. I just don't 99% of the time.

FYI. My Space Indenter Plugin settings are thus:

Your settings work as intended on my machine. I can only reproduce the issue after disabling the plugin.

Ah ha! I should also add that I have "Opted-in to the editor beta" in the General options (I updated the post's heading). If I turn it off, it does not have this behavior.

And so, this issue is a beta-editor issue, then. Or the plugin is not fully compliant with the beta editor? Dunno who should own this.

I think it's the latter. The beta editor has tab auto-indent as expected. The only plugin setting that's compliant with the beta editor is Automatic find & replace.

Off-topic: should Beta Editor: be added to About Joplin?

1 Like

I've opened a pull request on the Space Indenter plugin's GitHub repository that should resolve this:

3 Likes

Thanks so much @personalizedrefriger. The PR was merged and released as Space Indenter v0.2.3, which should become available shortly.

2 Likes

Rock on! Glad I gave you that itch to scratch. :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.