decaporg / decaporg/decap-cms

Rich Text Editor escapes valid Markdown

Open
#4,360 6 comments 0 reactions 0 assignees View on GitHub
area: extensions/widgets/markdown area: ui/editor type: bug
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**

The editor escapes valid markdown used in Jekyll. I have the following Markdown in Jekyll

*[MY]: My Abbr
[Link to my post]({% link _post/mypost.md %})

When toggling the Rich Text editor, I end up with the code escaped.

**To Reproduce**

See this diff saved after opening the .md file with the Rich text editor.

https://github.com/motionsplan/motionsplan-dk-jekyll/pull/52/files

Links and abbr. is escaped.

**Expected behavior**

Making sure that the abbr and links are left alone.

**Screenshots**

**Applicable Versions:**

- Netlify CMS version: [e.g. 2.10.16]
- Git provider: [GitHub] and Netlify
- OS: [e.g. Windows 7]
- Browser version [e.g. chrome 22, safari 11]

- Node.JS version:

**CMS configuration**

https://github.com/motionsplan/motionsplan-dk-jekyll/blob/master/admin/config.yml

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.