Skip to content

newlines in Edit mode aren't preserved in Preview mode #1210

Open
@modernNeo

Description

@modernNeo

Please make a clear and concise description of what the bug is.

Steps to reproduce

  1. create a note that contains checklists
  2. toggle between Preview and Edit mode

Expected behaviour

I expect the newlines that I put in the note in Edit mode to be preserved in Preview mode.

Actual behaviour/Screenshots

this
Screenshot from 2024-01-20 12-06-48
turns into
Screenshot from 2024-01-20 12-06-57

Server

Please complete the following information.

  • Notes app version: 4.8.1
  • Nextcloud version: nextcloud:27.0.1-apache
  • Database: PostgreSQL

Nextcloud configuration:

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "27.0.1.2",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "overwriteprotocol": "https",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2,
        "maintenance": false
    }
}

Client

Please complete the following information.

  • Browser (incl. version): firefox 115.3.1esr
  • OS: Debian

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature: Markdown-itRelated to preview mode using Markdown-it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions