forked from OI-wiki/OI-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdast-util-to-markdown+1.3.0.patch
33 lines (32 loc) · 1.51 KB
/
mdast-util-to-markdown+1.3.0.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/node_modules/mdast-util-to-markdown/lib/handle/break.js b/node_modules/mdast-util-to-markdown/lib/handle/break.js
index 5f7a3bf..b1e93c2 100644
--- a/node_modules/mdast-util-to-markdown/lib/handle/break.js
+++ b/node_modules/mdast-util-to-markdown/lib/handle/break.js
@@ -23,5 +23,5 @@ export function hardBreak(_, _1, context, safe) {
}
}
- return '\\\n'
+ return ' \n'
}
diff --git a/node_modules/mdast-util-to-markdown/lib/unsafe.js b/node_modules/mdast-util-to-markdown/lib/unsafe.js
index 251fe9b..4d248f0 100644
--- a/node_modules/mdast-util-to-markdown/lib/unsafe.js
+++ b/node_modules/mdast-util-to-markdown/lib/unsafe.js
@@ -68,7 +68,7 @@ export const unsafe = [
{character: '#', inConstruct: 'headingAtx', after: '(?:[\r\n]|$)'},
// Dollar sign and percentage are not used in markdown.
// An ampersand could start a character reference.
- {character: '&', after: '[#A-Za-z]', inConstruct: 'phrasing'},
+ // {character: '&', after: '[#A-Za-z]', inConstruct: 'phrasing'},
// An apostrophe can break out of a title.
{character: "'", inConstruct: 'titleApostrophe'},
// A left paren could break out of a destination raw.
@@ -109,7 +109,7 @@ export const unsafe = [
},
{character: '<', inConstruct: 'destinationLiteral'},
// An equals to can start setext heading underlines.
- {atBreak: true, character: '='},
+ // {atBreak: true, character: '='},
// A greater than can start block quotes and it can break out of a
// destination literal.
{atBreak: true, character: '>'},