We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5627ef8 commit 4bf475fCopy full SHA for 4bf475f
lib/common/utils.js
@@ -294,8 +294,12 @@ var _g = typeof global !== 'undefined' ? global : window;
294
var tokensRef = new _g.WeakMap();
295
296
function getLineOffset(state) {
297
- const blockState = state.env.state_block;
298
- return blockState.lineOffsets[state.currentLine] ?? 0;
+ if (state.env.parentToken.parentType === 'blockquote') {
+ const blockState = state.env.state_block;
299
+ return blockState.lineOffsets[state.currentLine] ?? 0;
300
+ } else {
301
+ return 0;
302
+ }
303
}
304
305
function trimLeftOffset(str) {
0 commit comments