Browse Source

Remove StateBlock.ddIndent + related updates, #1139

pull/1197/head
Vitaly Puzrin 3 months ago
parent
commit
8aaa330fbe
  1. 18
      package-lock.json
  2. 2
      package.json
  3. 1
      src/rules_block/state_block.ts
  4. 2
      src/types.ts

18
package-lock.json

@ -36,7 +36,7 @@
"highlight.js": "^11.11.1",
"markdown-it-abbr": "^2.0.0",
"markdown-it-container": "^4.0.0",
"markdown-it-deflist": "^3.0.1",
"markdown-it-deflist": "^4.0.0",
"markdown-it-emoji": "^3.1.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-for-inline": "^2.0.1",
@ -4314,10 +4314,20 @@
"license": "MIT"
},
"node_modules/markdown-it-deflist": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/markdown-it-deflist/-/markdown-it-deflist-3.0.1.tgz",
"integrity": "sha512-pPtXxihDMi9jrwLLQ+Jra/FM20F/FFJWiVjXf0Js6Lwp7LFj+MuK6cUJNMVTRL+n9d/JqF4MEqYZwSMgVodK5g==",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/markdown-it-deflist/-/markdown-it-deflist-4.0.0.tgz",
"integrity": "sha512-06186ZWDwNLg638THD70MxBeFrDMF0+nL7IWU/qwCGHGOcUIm4MTYXbfjpv0ooWnVjkSnAjW8msKaOQmNRfY6Q==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/puzrin"
},
{
"type": "github",
"url": "https://github.com/sponsors/markdown-it"
}
],
"license": "MIT"
},
"node_modules/markdown-it-emoji": {

2
package.json

@ -78,7 +78,7 @@
"highlight.js": "^11.11.1",
"markdown-it-abbr": "^2.0.0",
"markdown-it-container": "^4.0.0",
"markdown-it-deflist": "^3.0.1",
"markdown-it-deflist": "^4.0.0",
"markdown-it-emoji": "^3.1.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-for-inline": "^2.0.1",

1
src/rules_block/state_block.ts

@ -35,7 +35,6 @@ class StateBlock {
line = 0 // line index in src
lineMax = 0 // lines count
tight = false // loose/tight mode for lists
ddIndent = -1 // indent of the current dd block (-1 if there isn't any)
listIndent = -1 // indent of the current list block (-1 if there isn't any)
// can be 'blockquote', 'list', 'root', 'paragraph' or 'reference'

2
src/types.ts

@ -10,7 +10,7 @@ export interface Reference {
* Plugins may use it to store arbitrary data.
*/
export interface Env {
[key: string]: unknown
[key: string | symbol]: unknown
references?: Record<string, Reference>
}

Loading…
Cancel
Save