nextcloud / nextcloud/notes-ios

Nextcloud Notes iOS - Code Block

Open
#135 1 comment 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
73
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Even though I add triple backticks (```) for creating a code block on Notes iOS, it does not respect it. Adding # for comments on code inside the code block, Notes iOS displays it as Heading.

I've tried enabling and disabling Internal editor, no difference. It works fine on Nextcloud web.


Steps to reproduce
  1. Open a note on Nextcloud Notes iOS
  2. Type triple backticks (```) for creating a code block
  3. Type # for adding a comment on the code block
  4. The comment text becomes Header. It is normal behavior for Markdown when you type # but it’s not normal if you are into a code block.
Expected behaviour

The code block properties should be respected

iOS Version: 4.3.1
This is what happens on editor
Image

This is what it shows on preview (and this is the correct way to display it on editor, too)
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.