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

[Enhancement] [2.0] (Option to) hide markup annotations for italics and bold #2377

Closed
Redsandro opened this issue Aug 30, 2021 · 7 comments
Closed
Assignees
Labels
feature This is a completely new feature for Zettlr. pinned Indicates this issue should not be automatically handled by the bots.
Projects

Comments

@Redsandro
Copy link
Contributor

Redsandro commented Aug 30, 2021

Description

Implement an option to hide the markup annotations for markdown italics and bold. It is a popular recurring request.

ℹ️ Zettlr already behaves in a similar way for urls/links and - to a more complex degree - tables.

This would make behavior for italics and bold similar to that of links, where you only see the markup annotations while the cursor is in the relevant position.

Update:

  • __bold__
  • *italics*
  • inline code
  • ~~strikethrough~~

Additional Information

@nathanlesage commented:

The functionality is already in Zettlr, funny enough. I just need to expose a setting to actually enable it. If you didn't know: I did write an experimental WYSIWYG-mode two or three years ago, but never opened it to the public :D


Backlinks: #2243

@nathanlesage nathanlesage added this to To do in Zettlr 2.x via automation Sep 2, 2021
@nathanlesage nathanlesage added feature This is a completely new feature for Zettlr. pinned Indicates this issue should not be automatically handled by the bots. labels Sep 2, 2021
@nathanlesage nathanlesage self-assigned this Sep 2, 2021
@Redsandro
Copy link
Contributor Author

Inline backticks!

Should we include the markup annotations for inline code to the optional hide?

@nathanlesage
Copy link
Member

Mh, since both are semantically the same (delimit code) this could be done in one option, yes

@Julianoe
Copy link

Julianoe commented Sep 10, 2021

Hi! I'm a daily user of Zettlr as I use .md notes for pretty much anything. But like @Redsandro describes in issue #2243 I tend to cheat on Zettlr for more "slick" softwares when I need to have a "bloat-less" view of my content. For writing long form among other use cases. Typora is the one these days.

Wouldn't it be possible to dynamically add classes to an element when cursor is on the relevant position to show the markup like "active". This way it would allow anybody to define what it looks like in the CSS easily? I guess that's how other tools do it.

Anyways, I'm all for the addition of that option! :D

ps: don't forget the slashed texte too ;)

@nathanlesage
Copy link
Member

Ouh, I just implemented that! Just not strikethrough … but I can add that real quick

Zettlr 2.x automation moved this from To do to Done Feb 10, 2022
@Redsandro
Copy link
Contributor Author

@nathanlesage sweet, I've been looking forward to this one!

It is not in today's 2.2.0 release yet, correct? Or am I looking in the wrong place to enable this option?

@nathanlesage
Copy link
Member

Nope, it's coming with 2.2.1! But that should take at most a few days!

@Redsandro
Copy link
Contributor Author

Redsandro commented Feb 16, 2022

I have discovered an issue with these options enabled. I will open a new issue for that.

Update: #3223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is a completely new feature for Zettlr. pinned Indicates this issue should not be automatically handled by the bots.
Projects
Zettlr 2.x
  
Done
Development

No branches or pull requests

3 participants