Code formatting in Secure Notes markdown not working

RMPitcher
RMPitcher
Community Member

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

1. Numbered list
2. 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

Comments

  • Hi @RMPitcher! This is a known issue at the moment, and I've added your case to the issue on file. Thanks for taking the time to report this to us! 😄

    ref: dev/core/core#2742

  • Backspaze
    Backspaze
    Community Member

    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.

  • 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

  • Harag
    Harag
    Community Member
    edited June 2023

    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]

  • chrisk
    chrisk
    Community Member
    edited July 2023

    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 pulldown-cmark, which implements a smaller subset of Markdown called CommonMark, which is focused on being well-specified and well-tested, presumably as a security precaution.

  • Harag
    Harag
    Community Member

    @chrisdj Thanks for confirming that, Much appreciated.

  • prlcutting
    prlcutting
    Community 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!

  • @prlcutting - Thanks for your your additional report. I've included your details for our Development 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.

This discussion has been closed.