Skip to content

Preformatted text is rendered incorrectly #349

@taikedz

Description

@taikedz

Describe the bug

When a markdown codeblock is used like

```yaml
data:
  moredata:
```

it simply renders as

data:

moredata:

when viewed in the Nextcloud Notes browser view.

Environment

  • Firefox 67.0.4
  • Ubuntu 18.04

To Reproduce

Steps to reproduce the behavior:

  • Create a new note
  • Start a code block with "```", and add some preformatted text
  • See that it does not render a preformatted block, but a series of preformatted paragraph-lines
  • Inspect the raw file data to see that it is potentially correct

Expected behavior

The same type of rendering as here on Github (example above)

Screenshots

nextcloud_notes_yaml

Server (please complete the following information):

  • Notes app version: 3.0.1 (just updated)
  • Nextcloud version: 16.0.3
  • OS: Ubuntu 16.04 server
  • Web server: Apache2
  • PHP version: PHP7
  • Database: MySQL

Client (please complete the following information):

  • Browser (incl. version): Firefox 64
  • OS: Ubuntu 18.04

Log files

(none relevant?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature: EasyMDERealted to the integrated EasyMDE editor

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions