You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice if all the extensions provided (in extension.ts) could also be provided by a third party package.
However that's not the case, if you apply this patch:
diff --git a/src/extension.ts b/src/extension.ts--- a/src/extension.ts+++ b/src/extension.ts@@ -1,5 +1,6 @@-import {InlineContext, BlockContext, MarkdownConfig,- LeafBlockParser, LeafBlock, Line, Element, space, Punctuation} from "./markdown"+import type {InlineContext, BlockContext, MarkdownConfig,+ LeafBlockParser, LeafBlock, Line, Element} from "../dist/index"+import {space, Punctuation} from "./markdown"
import {tags as t} from "@lezer/highlight"
const StrikethroughDelim = {resolve: "Strikethrough", mark: "StrikethroughMark"}
and run npx tsc --noEmit you get:
src/extension.ts:129:21 - error TS2339: Property 'scanLine' does not exist on type 'BlockContext'.
129 let next = cx.scanLine(cx.absoluteLineEnd + 1).text
~~~~~~~~
src/extension.ts:129:33 - error TS2339: Property 'absoluteLineEnd' does not exist on type 'BlockContext'.
129 let next = cx.scanLine(cx.absoluteLineEnd + 1).text
~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: src/extension.ts:129
The text was updated successfully, but these errors were encountered:
I think it would be nice if all the extensions provided (in
extension.ts
) could also be provided by a third party package.However that's not the case, if you apply this patch:
and run
npx tsc --noEmit
you get:The text was updated successfully, but these errors were encountered: