[Pkg-javascript-commits] [Git][js-team/node-marked][upstream] New upstream version 4.0.18+ds+~4.0.5

Yadd (@yadd) gitlab at salsa.debian.org
Fri Aug 19 11:01:54 BST 2022



Yadd pushed to branch upstream at Debian JavaScript Maintainers / node-marked


Commits:
b6669155 by Yadd at 2022-08-19T10:14:28+02:00
New upstream version 4.0.18+ds+~4.0.5
- - - - -


8 changed files:

- package-lock.json
- package.json
- src/Tokenizer.js
- + test/specs/new/list_code_header.html
- + test/specs/new/list_code_header.md
- types-marked/README.md
- types-marked/index.d.ts
- types-marked/package.json


Changes:

=====================================
package-lock.json
=====================================
The diff for this file was not included because it is too large.

=====================================
package.json
=====================================
@@ -2,7 +2,7 @@
   "name": "marked",
   "description": "A markdown parser built for speed",
   "author": "Christopher Jeffrey",
-  "version": "4.0.17",
+  "version": "4.0.18",
   "type": "module",
   "main": "./lib/marked.cjs",
   "module": "./lib/marked.esm.js",
@@ -42,33 +42,33 @@
     "html"
   ],
   "devDependencies": {
-    "@babel/core": "^7.18.2",
-    "@babel/preset-env": "^7.18.2",
+    "@babel/core": "^7.18.6",
+    "@babel/preset-env": "^7.18.6",
     "@markedjs/html-differ": "^4.0.2",
     "@rollup/plugin-babel": "^5.3.1",
-    "@rollup/plugin-commonjs": "^22.0.0",
+    "@rollup/plugin-commonjs": "^22.0.1",
     "@semantic-release/commit-analyzer": "^9.0.2",
     "@semantic-release/git": "^10.0.1",
-    "@semantic-release/github": "^8.0.4",
+    "@semantic-release/github": "^8.0.5",
     "@semantic-release/npm": "^9.0.1",
     "@semantic-release/release-notes-generator": "^10.0.3",
-    "cheerio": "^1.0.0-rc.11",
+    "cheerio": "^1.0.0-rc.12",
     "commonmark": "0.30.0",
-    "eslint": "^8.17.0",
+    "eslint": "^8.19.0",
     "eslint-config-standard": "^17.0.0",
     "eslint-plugin-import": "^2.26.0",
-    "eslint-plugin-n": "^15.2.1",
+    "eslint-plugin-n": "^15.2.4",
     "eslint-plugin-promise": "^6.0.0",
     "front-matter": "^4.0.2",
     "highlight.js": "^11.5.1",
-    "jasmine": "^4.1.0",
+    "jasmine": "^4.2.1",
     "markdown-it": "13.0.1",
-    "node-fetch": "^3.2.5",
-    "rollup": "^2.75.5",
-    "rollup-plugin-license": "^2.8.0",
+    "node-fetch": "^3.2.6",
+    "rollup": "^2.76.0",
+    "rollup-plugin-license": "^2.8.1",
     "semantic-release": "^19.0.3",
     "titleize": "^3.0.0",
-    "uglify-js": "^3.16.0",
+    "uglify-js": "^3.16.2",
     "vuln-regex-detector": "^1.3.0"
   },
   "scripts": {


=====================================
src/Tokenizer.js
=====================================
@@ -226,7 +226,8 @@ export class Tokenizer {
         if (!endEarly) {
           const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`);
           const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
-          const fencesBeginRegex = new RegExp(`^( {0,${Math.min(3, indent - 1)}})(\`\`\`|~~~)`);
+          const fencesBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\`\`\`|~~~)`);
+          const headingBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`);
 
           // Check if following lines should be included in List Item
           while (src) {
@@ -244,7 +245,7 @@ export class Tokenizer {
             }
 
             // End list item if found start of new heading
-            if (this.rules.block.heading.test(line)) {
+            if (headingBeginRegex.test(line)) {
               break;
             }
 


=====================================
test/specs/new/list_code_header.html
=====================================
@@ -0,0 +1,3 @@
+<ul>
+  <li>list <h1 id="header">header</h1></li>
+</ul>


=====================================
test/specs/new/list_code_header.md
=====================================
@@ -0,0 +1,2 @@
+- list
+  # header


=====================================
types-marked/README.md
=====================================
@@ -8,7 +8,7 @@ This package contains type definitions for Marked (https://github.com/markedjs/m
 Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked.
 
 ### Additional Details
- * Last updated: Mon, 21 Mar 2022 11:01:43 GMT
+ * Last updated: Wed, 17 Aug 2022 23:02:30 GMT
  * Dependencies: none
  * Global values: none
 


=====================================
types-marked/index.d.ts
=====================================
@@ -77,11 +77,7 @@ export namespace marked {
      * @param callback Function called when the markdownString has been fully parsed when using async highlighting
      * @return String of compiled HTML
      */
-    function parse(
-        src: string,
-        options?: MarkedOptions,
-        callback?: (error: any, parseResult: string) => void,
-    ): string;
+    function parse(src: string, options?: MarkedOptions, callback?: (error: any, parseResult: string) => void): string;
 
     /**
      * @param src Tokenized source as array of tokens
@@ -149,7 +145,12 @@ export namespace marked {
             src: string,
             links: Tokens.Link[] | Tokens.Image[],
         ): Tokens.Link | Tokens.Image | Tokens.Text | T;
-        emStrong(this: Tokenizer & TokenizerThis, src: string, maskedSrc: string, prevChar: string): Tokens.Em | Tokens.Strong | T;
+        emStrong(
+            this: Tokenizer & TokenizerThis,
+            src: string,
+            maskedSrc: string,
+            prevChar: string,
+        ): Tokens.Em | Tokens.Strong | T;
         codespan(this: Tokenizer & TokenizerThis, src: string): Tokens.Codespan | T;
         br(this: Tokenizer & TokenizerThis, src: string): Tokens.Br | T;
         del(this: Tokenizer & TokenizerThis, src: string): Tokens.Del | T;
@@ -223,7 +224,7 @@ export namespace marked {
         static parse(src: Token[] | TokensList, options?: MarkedOptions): string;
         static parseInline(src: Token[], options?: MarkedOptions): string;
         parse(src: Token[] | TokensList): string;
-        parseInline(src: Token[], renderer: Renderer): string;
+        parseInline(src: Token[], renderer?: Renderer): string;
         next(): Token;
     }
 
@@ -239,7 +240,7 @@ export namespace marked {
         blockTokens(src: string, tokens: Token[]): Token[];
         blockTokens(src: string, tokens: TokensList): TokensList;
         inline(src: string, tokens: Token[]): void;
-        inlineTokens(src: string, tokens: Token[]): Token[];
+        inlineTokens(src: string, tokens?: Token[]): Token[];
         state: {
             inLink: boolean;
             inRawBlock: boolean;
@@ -463,7 +464,7 @@ export namespace marked {
     interface TokenizerExtension {
         name: string;
         level: 'block' | 'inline';
-        start?: ((this: TokenizerThis, src: string) => number) | undefined;
+        start?: ((this: TokenizerThis, src: string) => number | void) | undefined;
         tokenizer: (this: TokenizerThis, src: string, tokens: Token[] | TokensList) => Tokens.Generic | void;
         childTokens?: string[] | undefined;
     }
@@ -516,11 +517,7 @@ export namespace marked {
          * with an error if any occurred during highlighting and a string
          * if highlighting was successful)
          */
-        highlight?(
-            code: string,
-            lang: string,
-            callback?: (error: any, code?: string) => void,
-        ): string | void;
+        highlight?(code: string, lang: string, callback?: (error: any, code?: string) => void): string | void;
 
         /**
          * Set the prefix for code block classes.


=====================================
types-marked/package.json
=====================================
@@ -1,6 +1,6 @@
 {
     "name": "@types/marked",
-    "version": "4.0.3",
+    "version": "4.0.5",
     "description": "TypeScript definitions for Marked",
     "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked",
     "license": "MIT",
@@ -75,8 +75,8 @@
     },
     "scripts": {},
     "dependencies": {},
-    "typesPublisherContentHash": "b33e1af17fb00a1cbf698146c2d72ef6123f95980b5f17dd637874c386c3d453",
-    "typeScriptVersion": "3.9",
+    "typesPublisherContentHash": "f4980dbbdc210404123315cbe702601a94c90254e31de674f23383dc833ddaf1",
+    "typeScriptVersion": "4.0",
     "exports": {
         ".": {
             "types": {



View it on GitLab: https://salsa.debian.org/js-team/node-marked/-/commit/b6669155fc2a616023cb7d0ca68e00f462d01036

-- 
View it on GitLab: https://salsa.debian.org/js-team/node-marked/-/commit/b6669155fc2a616023cb7d0ca68e00f462d01036
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20220819/e96c93ed/attachment-0001.htm>


More information about the Pkg-javascript-commits mailing list