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

Provide a plaintext mode without any markdown rendering #82

Closed
robled opened this Issue Feb 17, 2016 · 13 comments

Comments

Projects
None yet
2 participants
@robled

robled commented Feb 17, 2016

In "Edit" mode, some amount of markdown is rendered. In some cases the user may prefer not to use markdown at all. My use case is to store the following text file as a note for reference:

https://gist.github.com/robled/99b935c33194725789cb

If you paste the above text into a note some of the sections will be rendered green, others bold, others italics. It's possible that I may have a missed a config option somewhere, but for this type of use case I would prefer an option for plain text only.

@pbek

This comment has been minimized.

Owner

pbek commented Feb 17, 2016

Do you want a setting that can turn off the markdown support for the whole application?

It would be much easier to encapsulate your text in a code block like that:

your text
@robled

This comment has been minimized.

robled commented Feb 17, 2016

If there was an option to disable Markdown globally during editing I would probably use it. I store so much plaintext as notes, so I could benefit from that as a default for myself.

@pbek

This comment has been minimized.

Owner

pbek commented Feb 17, 2016

Hm, I'm not sure if viewing and maintaining an other tab with a text edit would be a great solution...
And disabling the whole markdown support for a few text-only notes doesn't seem a good choice either.

How is that handled by the mobile apps and the web app?

@robled

This comment has been minimized.

robled commented Feb 18, 2016

The mobile and web apps appear to be rendering markdown as well. I guess I'm just looking for a self-hosted open source GitHub Gist type of feature. This kind of thing is certainly more useful on a desktop app than on the web or mobile apps.

@pbek

This comment has been minimized.

Owner

pbek commented Feb 18, 2016

So what do you propose?

@robled

This comment has been minimized.

robled commented Feb 18, 2016

Perhaps a toggle-able menu option/toolbar item to "render as plaintext" that will just insert the ``` marks at the head and tail ends. This way the state of this setting would be saved on a per-note basis.

@pbek

This comment has been minimized.

Owner

pbek commented Feb 18, 2016

What would keep you to just enter a ` character yourself (actually you just need one, not three)?
Or what is the benefit of the button? Just entering ``?

@pbek

This comment has been minimized.

Owner

pbek commented Feb 18, 2016

Maybe entering `` and moving the cursor between the two characters, like the "Insert code" button here on GitHub? Maybe with a hotkey Ctrl + Shift + C?

@pbek pbek added the enhancement label Feb 20, 2016

@pbek

This comment has been minimized.

Owner

pbek commented Feb 20, 2016

I have this implemented now in version 1.0.4.

@robled

This comment has been minimized.

robled commented Feb 21, 2016

Thank you! I will try this out once 1.0.4 hits the Arch Linux AUR.

@pbek

This comment has been minimized.

Owner

pbek commented Feb 21, 2016

Version 1.0.4 is out now.

@robled

This comment has been minimized.

robled commented Feb 21, 2016

Works great, thanks! I like the toolbar icon too.

@robled robled closed this Feb 21, 2016

@pbek

This comment has been minimized.

Owner

pbek commented Feb 21, 2016

Great you like it ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment