Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1482

Fix plain text Note document preview displaying as markdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.63, 3.0.14
    • Component/s: UI
    • Release Notes Summary:
      Plain text Note documents written with Markdown have a correct preview.
    • Backlog priority:
      600
    • Sprint:
      UI - 2022-06, UI COOLDOWN - 2022-05

      Description

      Note documents with note:mime_type 'text/plain' display in nuxeo-document-preview as markdown.

      Steps to reproduce:

      1. In Web UI, create a Note document of mime-type 'Text'.
      2. Edit Note content to contain markdown formatting - for example:
      # Title
      ---
      - item 1
      - item 2
      - item 3

      Expected behavior: Note document preview displays as plain text (pound and dash characters visible; rendered as typed)

      Actual behavior: Note document preview displays as markdown (Title text bolded, bullet points ahead of item text, and line separator between both).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 1 hour, 15 minutes
                  1d 1h 15m