decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.93k stars 3.04k forks source link

Markdown widget parses backslash wrong in headers #6707

Open mjohenneken opened 1 year ago

mjohenneken commented 1 year ago

Describe the bug The Markdown widget fails to parse a backslash at the end of a first header line as a multi-line header. However it inserts the backslash it self with Shift + Enter

To Reproduce

  1. Open a page with a markdown editor in rich text mode
  2. Enter "First Second"
  3. Insert line break with Shift + Enter after "First"
  4. Select markdown mode
  5. Observe a backslash is present in markdown
  6. Select RichText mode
  7. Observe that now a backslash is present the markup is not showing as a multi-line

Expected behavior The Multi-Line header should be shown correctly.

Screenshots image image image

Applicable Versions:

CMS configuration

Widget Config:
- { label: 'Textkörper', name: 'body', widget: 'markdown' }

Additional context Related issue on backslash behavior in paragraphs

jckras commented 7 months ago

Hi, is this issue still available?

martinjagodic commented 7 months ago

@jckras if you mean if someone is already working on it, the answer is no.

ijayhub commented 5 months ago

Is it assigned ? if not can you assign to me.