Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown widget parses backslash wrong in headers #6707

Open
mjohenneken opened this issue Feb 28, 2023 · 3 comments
Open

Markdown widget parses backslash wrong in headers #6707

mjohenneken opened this issue Feb 28, 2023 · 3 comments
Assignees
Labels

Comments

@mjohenneken
Copy link

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:

  • netlify-cms-app 2.15.72
  • netlify-cms-core 2.55.2
  • netlify-cms 2.10.192
  • Git provider: GitLab
  • OS: Win 10
  • Browser version v1.48.171 (Chromium 110.0.5481.177)

CMS configuration

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

Additional context
Related issue on backslash behavior in paragraphs

@mjohenneken mjohenneken added the type: bug code to address defects in shipped code label Feb 28, 2023
@martinjagodic martinjagodic added area: ui/editor and removed type: bug code to address defects in shipped code labels Apr 26, 2023
@jckras
Copy link

jckras commented Mar 18, 2024

Hi, is this issue still available?

@martinjagodic
Copy link
Member

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

@ijayhub
Copy link

ijayhub commented Jun 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants