File tree 4 files changed +24
-1
lines changed
4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -323,12 +323,20 @@ export class Parser {
323
323
324
324
const value = node . value as string
325
325
326
+ const { loc, start, end } = normalizePosition ( node . position )
327
+
326
328
// fix #4
327
329
if ( isComment ( value ) ) {
330
+ const comment = COMMENT_CONTENT_REGEX . exec ( value ) [ 2 ]
331
+ this . _ast . comments . push ( {
332
+ type : 'Block' ,
333
+ value : comment ,
334
+ loc,
335
+ range : [ start , end ] ,
336
+ } )
328
337
return
329
338
}
330
339
331
- const { loc, start } = normalizePosition ( node . position )
332
340
const startLine = loc . start . line - 1 // ! line is 1-indexed, change to 0-indexed to simplify usage
333
341
334
342
let program : AST . Program
Original file line number Diff line number Diff line change @@ -116,4 +116,6 @@ Header <header>
116
116
"
117
117
`;
118
118
119
+ exports[`fixtures should match all snapshots: remark.md 1`] = `undefined`;
120
+
119
121
exports[`fixtures should match all snapshots: remark.mdx 1`] = `undefined`;
Original file line number Diff line number Diff line change
1
+ _ Hello_ , ** world** !
2
+
3
+ <!-- lint disable no-literal-urls-->
4
+
5
+ ### Code Splitting
6
+
7
+ This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
Original file line number Diff line number Diff line change 1
1
_ Hello_ , ** world** !
2
+
3
+ ### Code Splitting
4
+
5
+ <!-- eslint-disable mdx/remark -->
6
+
7
+ This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
You can’t perform that action at this time.
0 commit comments