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 custom components markdown parsing #1548

Merged
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
fc1127a
Initialize
wxwxwxwx9 Apr 17, 2021
3a8c23d
Remove comments
wxwxwxwx9 Apr 17, 2021
838d849
Fix regex rule
wxwxwxwx9 Apr 17, 2021
f676cc1
Update tests
wxwxwxwx9 Apr 17, 2021
ebaf948
Remove console log
wxwxwxwx9 Apr 17, 2021
b3bdd1f
Update comments
wxwxwxwx9 Apr 17, 2021
4f4e91d
Fix indentation in customComponentPlugin
wxwxwxwx9 Apr 17, 2021
da8e989
Update comment
wxwxwxwx9 Apr 17, 2021
32c83f3
Update "Pic" and "Thumbnail" components to inline
wxwxwxwx9 Apr 20, 2021
04a186e
Shift customComponent folder to patches
wxwxwxwx9 Apr 20, 2021
b08d586
Combine escape-special-tags into customComponent html block rule
wxwxwxwx9 Apr 20, 2021
1be94c9
Delete markdown-it-escape-special-tags.js
wxwxwxwx9 Apr 20, 2021
d5edc4e
Update tests
wxwxwxwx9 Apr 20, 2021
1f2340f
Tweak comments, indentations, and variable names
wxwxwxwx9 Apr 20, 2021
f0c2770
Correct variable name
wxwxwxwx9 Apr 20, 2021
80f6403
Remove script, pre, style from special tags
wxwxwxwx9 Apr 21, 2021
3740e1f
Revert "Update "Pic" and "Thumbnail" components to inline"
wxwxwxwx9 Apr 21, 2021
bec047a
Update tests
wxwxwxwx9 Apr 21, 2021
2cec817
Add pic and thumbnail as inline tags
wxwxwxwx9 Apr 21, 2021
a9ff6a4
Update test
wxwxwxwx9 Apr 21, 2021
948b5ce
Added script, pre, style back to special tags regex
wxwxwxwx9 Apr 21, 2021
6d3d213
Delete index file and shift source file link to customComponentPlugin
wxwxwxwx9 Apr 21, 2021
4105f69
Remove vueReservedTags
wxwxwxwx9 Apr 21, 2021
bde3a4c
Add popover, tooltip, trigger to inlineTags
wxwxwxwx9 Apr 21, 2021
81b65ec
Update tests
wxwxwxwx9 Apr 21, 2021
1bd4447
Update source file comments
wxwxwxwx9 Apr 21, 2021
2161fd0
Update minimizedPanelStringRegex to Zeyu's suggestion
wxwxwxwx9 Apr 21, 2021
116a3b5
Remove vueReservedTags file
wxwxwxwx9 Apr 21, 2021
858aff4
Update regex
wxwxwxwx9 Apr 21, 2021
5d35b63
Add test for panel minimized markdown parsing
wxwxwxwx9 Apr 21, 2021
c35741a
Update test comments
wxwxwxwx9 Apr 21, 2021
0566fb5
Update markdown-it-custom-component.test.js
wxwxwxwx9 Apr 21, 2021
8b63fc0
Update markdown-it-custom-component.test.js
wxwxwxwx9 Apr 21, 2021
0924d5c
Update markdown-it-custom-component.test.js
wxwxwxwx9 Apr 21, 2021
792df05
Update test description
wxwxwxwx9 Apr 21, 2021
29e7614
Add Zeyu's edge case
wxwxwxwx9 Apr 21, 2021
94986bc
Create testPanelMarkdownParsing.md
wxwxwxwx9 Apr 21, 2021
72a55b1
Update site.json
wxwxwxwx9 Apr 21, 2021
7996460
Update testPanelMarkdownParsing.md
wxwxwxwx9 Apr 21, 2021
613636c
Update tests
wxwxwxwx9 Apr 21, 2021
7c15fc3
Delete markdown-it-custom-component.test.js
wxwxwxwx9 Apr 21, 2021
8094748
Update NonFunctionalRequirements.md
wxwxwxwx9 Apr 21, 2021
5443c24
Update NonFunctionalRequirements._include_.html
wxwxwxwx9 Apr 21, 2021
6ae92ca
Update testPanelMarkdownParsing.md
wxwxwxwx9 Apr 21, 2021
0a66760
Update test
wxwxwxwx9 Apr 21, 2021
08541e4
Change seg to span
wxwxwxwx9 Apr 21, 2021
1802120
Update tests
wxwxwxwx9 Apr 21, 2021
a4e1095
Update all seg tag to span
wxwxwxwx9 Apr 21, 2021
5b74bca
Update seg to div
wxwxwxwx9 Apr 21, 2021
3fc4d98
Update tests
wxwxwxwx9 Apr 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function initCustomComponentHtmlBlockRule(tagsToIgnore) {
* Custom patch for the api to escape content in certain special tags.
*/
const specialTagsRegex = Array.from(tagsToIgnore)
.concat(['include|script|pre|style|variable|site-nav|markdown|md'])
.concat(['include|variable|site-nav|markdown|md'])
.join('|');

// attr_name, unquoted ... attribute patterns adapted from markdown-it/lib/common/html_re
Expand Down