Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
RMPitcher
3 years agoNew Contributor
Code formatting in Secure Notes markdown not working
I've recently discovered that the code or monospace formatting for secure notes isn't working properly. The inline backtick formatting seems to work in the iOS app, but not the Windows 11 app (8.10.5). The four-space indented block doesn't work on either platform.
This is what it looks like in the Windows app
This is what it looks like in the iOS app (8.10.4)
Not a huge deal but I would like use monospaced text quite a lot in my notes so it would be great to have it working. Thanks!
Russ
P.S. This is the markdown code I've tested with:
```
Heading 1
Heading 2
Heading 3
Bold
Italic or Italic
Strikethrough
List list asterisk
List hypen
List plus
- Numbered list
- List item
Quotation
This should be inline code
This should be
formatted as
indented code
END: Markdown test
```
1Password Version: 8.10.5
Extension Version: Not Provided
OS Version: Windows 11 21H2
Browser:_ Not Provided
11 Replies
- TimG1P
Moderator
Thank you for sharing that. I've conduced some testing on my end and I'm afraid I haven't been able to reproduce this as numbered lists were being formatted as expected:
So that I can take a closer look at this, I'd to ask you to confirm the following:
- Are you seeing this in the 1Password app on a specific device, the browser extension pop-up overlay, the 1Password web interface, or everywhere?
- Could you let me know what version of 1Password you're currently using? Find the version numbers for 1Password and your operating system
- craski
1Password Team
Hi, I'm one of the developers here at 1Password and have today investigated and identified the issue with inline code blocks not rendering in the desktop version of OP8 and have a merge request in review for it so am hoping we can get that fix approved and shipped.
- liketheskyOccasional Contributor
I’m still seeing this problem—or perhaps there was a regression and this bug has reappeared?
Can you confirm that numbered lists indeed work? I have one sentence above the screenshot, not numbered though this isn’t required to see the bug, then a simple numbered list after that and I see the first item has a weird outdent… I have confirmed this happens with a (new) secure note as simple as:
- A
- B
- ag_mike_d
1Password Team
@prlcutting - Thanks for your your additional report. I've included your details for our Development team. 👍
- Former Member
Hi. I also recently noticed that my inline code formatted Markdown (using backticks) wasn't being rendered as distinct from regular text in the 1Password app on Windows 10. I was going to create a new ticket, but see that others already beat me to it. Just adding that I'd also appreciate seeing this fixed. Thanks!
- Former Member
@chrisdj Thanks for confirming that, Much appreciated.
- Former Member
Hi @Harag! Yes, that is one one way. In 1Password's Markdown support in Secure Notes, blocks of code can be formatted by enclosing them with lines containing 3 backticks:
```
def hello
puts "Hello"
end
```
But you can also indent your code with 4 spaces:
def hello
puts "Hello"
end
Finally, inline code can be enclosed in
single backticks
.Anyway, +1 👍 For me, methods #2 and #3 aren't working in 1Password for Mac 8.10.8 (81008045).
*The source of this post is more complicated because I'm meta-wrapping my code blocks in code blocks using Markdown itself. This community forum's Markdown renderer is not the same as the one used in 1Password; the acknowledgements mention https://github.com/raphlinus/pulldown-cmark, which implements a smaller subset of Markdown called https://commonmark.org/, which is focused on being well-specified and well-tested, presumably as a security precaution.
- Former Member
Shouldn't the below have 3 backticks before and after it?
This should be formatted as indented code
as
[backtick 3 times here]
This should be
formatted as
indented code
[backtick 3 times here] - 1P_Gem
1Password Team
Hi Backspaze, thanks for letting us know that you've encountered this issue as well. I've added you to the list of affected users in the issue on file.
While I don't have any updates to share at the moment, you can keep an eye on our releases page for news on any bugfixes and new features: 1Password Releases
Let us know if you have any further questions or concerns 😄
ref: dev/core/core#15518
- BackspazeDedicated Contributor
I just noticed this too and was about to create a new topic when I stumbled upon this thread. I have a lot of
code
sections in my notes, so it would be nice to have those formatted correctly.