-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: mermaid will render a plain text on DOM target when secondary re…
…nder happens, reference: mermaid-js/mermaid#311 (comment)
- Loading branch information
Showing
11 changed files
with
325 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
### Meidt | ||
<h1 align="center">Medit</h1> | ||
|
||
A browser based Markdown editor. | ||
<p align="center">This libray is extracted from <a href="https://github.com/marktext/marktext">Marktext</a>. Thanks to their hard work.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module.exports = { | ||
parserPreset: { | ||
parserOpts: { | ||
headerPattern: /^(\w*)(?:\((.*)\))?:[ ]?(.*)$/, | ||
headerCorrespondence: ['type', 'scope', 'subject'] | ||
} | ||
}, | ||
rules: { | ||
'type-empty': [2, 'never'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'subject-empty': [2, 'never'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'ci', | ||
'chore', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test' | ||
] | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Some Knowledge to know before you start | ||
|
||
### Node Type | ||
- 1: Element node | ||
- 2: Attribute node | ||
- 3: Text node | ||
- 4: CDATA section node | ||
- 5: Entity Reference node | ||
- 6: Entity node | ||
- 7: Processing Instruction node | ||
- 8: Comment node | ||
- 9: Document node | ||
- 10: Document Type node | ||
- 11: Document Fragment node | ||
- 12: Notation node | ||
|
||
### Range.setStart() and Range.setEnd() | ||
If the `node` argument passed to `setStart()` is a text node, the `startOffset` value is the index of the first | ||
character in the text node that should be included in the range. For example, if `node` is a text node containing | ||
the string "Hello, world", and `startOffset` is 3, then the range would start with the fourth character in the | ||
text node, which is the letter "l" | ||
|
||
If the `node` argument is an element node, the `startOffset` value is the index of the child node within the | ||
element that should be the start of the range. For example, if `node` is an unordered list (`<ul>`) element with | ||
three list items (`<li>`), and `startOffset` is 2, then the range would start with the third `<li>` child element | ||
within the `<ul>`. translate this to chinese |
Oops, something went wrong.