tk04 / Marker

A Desktop App for Easily Viewing and Editing Markdown Files
https://marker.pages.dev
MIT License
1.04k stars 40 forks source link

HTML content in Markdown files are Removed by Maker. #13

Open Anxiu0101 opened 3 months ago

Anxiu0101 commented 3 months ago

Issue Submission

Problem Description

Maker appears to be removing HTML and CSS content from markdown files. Is this done for security reasons, or is there a workaround available?

Steps to Reproduce

Simply open markdown files containing HTML and CSS content using Maker. The following is the change recorded by git diff. diff.txt

Expected Behavior

Expect the HTML and CSS content to remain intact.

Actual Behavior

The HTML and CSS content, such as my Cards in the markdown, is being removed (

Screenshots (Optional)

image

Environment Information

Additional Information

N/A

tk04 commented 3 months ago

We currently don't support adding custom styles in the document. However, If your files contain basic HTML tags (p, ul, li, etc.), those will be rendered normally and rewritten to their markdown equivalent syntax.

it's not a security feature - the editor is built to primarily deal with Markdown content.