This is a sample implementation of a basic extension. It uses the @types/markdown-it
package from NPM which contains the documentation for markdown-it
. The code here is mostly copied from the backtick
rule implementation you can find in the original markdown-it
repository.
Plugin example for markdown-it, extension tutorial, markdown-it extension API, TypeScript, jsDoc, documentation for extensions, specification of plugin API, how to write an extension for markdown-it.
I'm trying to use your example, but the "RuleInline" is not found, I was forced to activate the "esModuleInterop" flag, but it still doesn't find it, would you have any suggestions?
I'm using Nativescript 8.3.3 with the following dependencies:
"dependencies": {
"@angular/animations": "~13.2.0",
"@angular/common": "~13.2.0",
"@angular/compiler": "~13.2.0",
"@angular/core": "~13.2.0",
"@angular/forms": "~13.2.0",
"@angular/platform-browser": "~13.2.0",
"@angular/platform-browser-dynamic": "~13.2.0",
"@angular/router": "~13.2.0",
"@nativescript/angular": "^13.0.0",
"@nativescript/core": "~8.3.4",
"@nativescript/firebase-core": "^2.3.4",
"@nativescript/firebase-database": "^2.3.4",
"@nativescript/firebase-firestore": "^2.3.4",
"@nativescript/firebase-installations": "^2.3.4",
"@nativescript/firebase-remote-config": "^2.3.4",
"@nativescript/theme": "~3.0.2",
"@types/markdown-it": "^12.2.3",
"rxjs": "~7.5.0",
"zone.js": "~0.11.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.2.0",
"@angular/compiler-cli": "~13.2.0",
"@nativescript/android": "8.3.1",
"@nativescript/types": "~8.3.1",
"@nativescript/webpack": "~5.0.6",
"@ngtools/webpack": "~13.2.0",
"typescript": "~4.5.5"
}