Skip to content

CSS classes "tok-link", "tok-meta" and "tok-url" are removed from highlited (marked) link in the editor #12110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexgoussev opened this issue Apr 15, 2025 · 0 comments
Labels
bug It's a bug

Comments

@alexgoussev
Copy link

alexgoussev commented Apr 15, 2025

Operating system

Windows

Joplin version

3.3.4

Desktop version info

Joplin 3.3.4 (prod, win32)

Device: win32, x64
Client ID: a6436183336d4b8192b3f60b919551f6
Sync Version: 3
Profile Version: 47
Keychain Supported: No
Alternative instance ID: -

Revision: 821558f

Extra Markdown editor settings: 1.10.1

Current behaviour

Since v3.3.1 Joplin removes "tok-link", "tok-meta" and "tok-url" CSS classes from highlited link in the editor.
It is definitely connected with this #11794
It breaks some features of "Extended Markdown editor settings" plugin (see personalizedrefrigerator/joplin-plugin-extra-editor-settings#34)

Examples

Text in the editor:
[Text](http://site.com)

HTML code in development toos window:

<div class="cm-line" dir="auto">
    <span class="ͼ1d tok-link tok-meta">[</span>
    <span class="ͼ1d tok-link">Text</span>
    <span class="ͼ1d tok-link tok-meta">]</span>
    <span class="ͼ1d tok-link tok-meta">(</span>
    <span class="cm-url" spellcheck="false" autocorrect="false">
        <span class="ͼ1d tok-link ͼ1h tok-url">http://site.com</span>
    </span>
    <span class="ͼ1d tok-link tok-meta">)</span>
</div>

Text in the editor:
==[Text](http://site.com)==

HTML code in development toos window:

<div class="cm-line" dir="auto">
    <span class="cm-highlighted">
        <span class="tok-meta">==</span>
            [Text](http://site.com)
        <span class="tok-meta">==</span>
    </span>
</div>

Text in the editor:
[==Text==](http://site.com)

HTML code in development toos window:

<div class="cm-line" dir="auto">
    [
    <span class="cm-highlighted">
        <span class="tok-meta">==</span>
        Text
        <span class="tok-meta">==</span>
    </span>
    ](
    <span class="cm-url" spellcheck="false" autocorrect="false">
        <span class="ͼ1h tok-url">http://site.com</span>
    </span>
    )
</div>

Expected behaviour

Joplin should not remove "tok-link", "tok-meta" and "tok-url" CSS classes from highlited link in the editor.

Logs

No response

@alexgoussev alexgoussev added the bug It's a bug label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

1 participant