Skip to content
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

Underscores in code lines split the viewer #14

Closed
jt196 opened this issue Aug 25, 2021 · 5 comments
Closed

Underscores in code lines split the viewer #14

jt196 opened this issue Aug 25, 2021 · 5 comments

Comments

@jt196
Copy link

jt196 commented Aug 25, 2021

Running an up to date (as of today) version of both Joplin and the plugin.

If I enter code on a single line e.g. app = Flask(__name__)

The underscore characters split the code line, as per this photo. Not sure whether this is intended or not, but it's hecka distracting, makes the code a lot harder to read.

image

@jt196
Copy link
Author

jt196 commented Aug 25, 2021

Here's the source:

<span class="cm-comment cm-variable-2 cm-jn-inline-code cm-jn-monospace">`app = Flask(</span>
<span class="cm-comment cm-variable-2 cm-jn-inline-code cm-jn-monospace cm-overlay cm-rm-strong-token">__</span>
<span class="cm-comment cm-variable-2 cm-jn-inline-code cm-jn-monospace">name</span>
<span class="cm-comment cm-variable-2 cm-jn-inline-code cm-jn-monospace cm-overlay cm-rm-strong-token">__</span>
<span class="cm-comment cm-variable-2 cm-jn-inline-code cm-jn-monospace">)`</span>

@jt196
Copy link
Author

jt196 commented Aug 25, 2021

for the time being unchecking Tools -> Options -> Rich Markdown -> Add additional CSS classes for enhanced customization gets rid of this.

@CalebJohn
Copy link
Owner

Not sure whether this is intended or not

Definitely not intentional! Just a quirk of the way highlighting stuff in the editor works. This might need to be fixed in the main app. I'll play around with it to see if there's anything I can do.

@jt196
Copy link
Author

jt196 commented Aug 26, 2021

Just a quirk of the way highlighting stuff in the editor works. This might need to be fixed in the main app.

Just to repeat, if I switch your CSS stylings off, it goes away.

@CalebJohn
Copy link
Owner

Just to repeat, if I switch your CSS stylings off, it goes away.

Okay thanks, I saw that in your last message. I'm glad to know you have a temporary work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants