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

fix: image cannot be previewed #738

Merged
merged 3 commits into from
Dec 4, 2021
Merged

Conversation

jiawulin001
Copy link
Contributor

Fix issue #737.

The preview is not available because the src attribute is filtered out by XSS.

Markdown image syntax skips XSS processing.

src/lib/core/rules.js Outdated Show resolved Hide resolved
@ygj6 ygj6 self-requested a review December 4, 2021 07:38
@ygj6 ygj6 merged commit 9933119 into hinesboy:master Dec 4, 2021
@ygj6
Copy link
Collaborator

ygj6 commented Dec 4, 2021

Thank you very much.

langren1353 pushed a commit to langren1353/mavonEditor that referenced this pull request Aug 1, 2022
* fix: image cannot be previewed,issue hinesboy#737

* fix test

* Update src/lib/core/rules.js

Co-authored-by: ygj6 <[email protected]>

Co-authored-by: ygj6 <[email protected]>
(cherry picked from commit 9933119)

# Conflicts:
#	src/mavon-editor.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants