Feature/Improvement Request: Plain-text Markdown Formatting
I've been using the 1Password for Mac Beta (v8) for a while now and generally it's pretty good. Haven't had anything seriously wrong happen whatsoever. A few minor annoyances here and there but overall, Agile Bits has done a fantastic job!
One little thing I'd like to see improved - eventually, you definitely have higher priority items at the moment, so no rush - is the plain-text Markdown formatting option. For example, if I create a note and I'm using the Markdown formatting option (in the app settings/prefs), that looks like this:
`plain text here`
When rendered, it displays as normally-rendered/formatted, not-fixed-width font text. I'd expect it to display as fixed-width (e.g. Courier New font or something similar).
Now, taking this a step further, I'd really REALLY like it if you could eventually incorporate code fence formatting like GitHub does. For example:
```ruby
def hello(whom)
puts "Hello, #{whom}!"
end
```
So the whole chunk would show up not only plain-text/fixed-width, but with full syntax highlighting, all done 100% client-side (so as to not accidentally leak the details of the user's note contents when asking a remote API to perform the render). That means you'll have to ship something like marked.js along with the app itself, but that shouldn't be too much of a problem since it's already built as an Electron app. Sure, not everybody's a fan of Electron, including me, but in this case that's a nice little benefit.
Anyway, hope this is useful to ya'll. And if this already exists somehow and I'm just plain Doing It Wrong(TM), please let me know! Thanks for a great product!
1Password Version: 80500103, on BETA channel
Extension Version: Not Provided
OS Version: MacOS 12.2
Comments
-
It seems like the Markdown renderer isn't working correctly in 1PW 8. I noticed the other night that the syntax for
code
(wrapping the word/phrase in back ticks) does nothing to the output.I know 1PW only supports a subset of the whole Markdown syntax( https://support.1password.com/markdown/ ) but even these don't fully work.
Also, the option to indent a line with at least 4 spaces for pre-formatted text doesn't work. Although putting 3 back ticks on the preceding blank line does.
Code fence formatting (3 back ticks) does work, but without any syntax highlighting. I'm not sure whether a full code syntax highlighting engine is appropriate for a password manager - how many people actually use 1PW for storing code snippets? And how would they decide which languages would need to be supported?
0 -
The inline code blocks using backticks is something I've noticed as well, and I've added your input to the issue we have tracking this. Thanks for your feedback!
Additionally, I've added your suggestion about syntax highlighting in Markdown to our internal feature requests tracker. While I can't promise anything, I can definitely see how it would be nice having your code snippets be highlighted 😀
Jack
ref: dev/core/core#2742
ref: dev/projects/customer-feature-requests#12170