Socket
Socket
Sign inDemoInstall

@types/marked

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/marked - npm Package Compare versions

Comparing version 4.3.0 to 5.0.0

31

marked/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for Marked 4.3
// Type definitions for Marked 5.0
// Project: https://github.com/markedjs/marked, https://marked.js.org

@@ -196,3 +196,3 @@ // Definitions by: William Orr <https://github.com/worr>

blockquote(this: Renderer | RendererThis, quote: string): string | T;
html(this: Renderer | RendererThis, html: string): string | T;
html(this: Renderer | RendererThis, html: string, block: boolean): string | T;
heading(

@@ -399,2 +399,3 @@ this: Renderer | RendererThis,

pre: boolean;
block: true;
text: string;

@@ -429,2 +430,3 @@ }

inRawBlock: boolean;
block: false;
text: string;

@@ -521,2 +523,4 @@ }

* A prefix URL for any relative link.
*
* @deprecated use https://www.npmjs.com/package/marked-base-url extension instead
*/

@@ -544,2 +548,4 @@ baseUrl?: string | undefined;

* Include an id attribute when emitting headings.
*
* @deprecated use https://www.npmjs.com/package/marked-gfm-heading-id extension instead
*/

@@ -550,2 +556,4 @@ headerIds?: boolean | undefined;

* Set the prefix for header tag ids.
*
* @deprecated use https://www.npmjs.com/package/marked-gfm-heading-id extension instead
*/

@@ -559,2 +567,4 @@ headerPrefix?: string | undefined;

* if highlighting was successful)
*
* @deprecated use https://www.npmjs.com/package/marked-highlight extension instead
*/

@@ -575,2 +585,4 @@ highlight?(code: string, lang: string, callback?: (error: any, code?: string) => void): string | void;

* Set the prefix for code block classes.
*
* @deprecated use https://www.npmjs.com/package/marked-highlight extension instead
*/

@@ -581,2 +593,4 @@ langPrefix?: string | undefined;

* Mangle autolinks (<email@domain.com>).
*
* @deprecated use https://www.npmjs.com/package/marked-mangle extension instead
*/

@@ -599,2 +613,4 @@ mangle?: boolean | undefined;

* Sanitize the output. Ignore any HTML that has been input.
*
* @deprecated use an HTML sanitizer on the output instead
*/

@@ -605,2 +621,4 @@ sanitize?: boolean | undefined;

* Optionally sanitize found HTML with a sanitizer function.
*
* @deprecated use an HTML sanitizer on the output instead
*/

@@ -615,8 +633,5 @@ sanitizer?(html: string): string;

/**
* Use smarter list behavior than the original markdown. May eventually be default with the old behavior moved into pedantic.
*/
smartLists?: boolean | undefined;
/**
* Use "smart" typograhic punctuation for things like quotes and dashes.
*
* @deprecated use https://www.npmjs.com/package/marked-smartypants extension instead
*/

@@ -639,2 +654,4 @@ smartypants?: boolean | undefined;

* Generate closing slash for self-closing tags (<br/> instead of <br>)
*
* @deprecated use https://www.npmjs.com/package/marked-xhtml extension instead
*/

@@ -641,0 +658,0 @@ xhtml?: boolean | undefined;

{
"name": "@types/marked",
"version": "4.3.0",
"version": "5.0.0",
"description": "TypeScript definitions for Marked",

@@ -78,3 +78,3 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked",

"dependencies": {},
"typesPublisherContentHash": "9c637316fdbceba2d765db8c4a10b7570a753d89a12fdace50c74989c4a870a3",
"typesPublisherContentHash": "fb1cff94d069290483245990c613f5815fe7d72ae8ef2981447e4c11644a7e66",
"typeScriptVersion": "4.3",

@@ -81,0 +81,0 @@ "exports": {

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 01 May 2023 15:02:50 GMT
* Last updated: Thu, 18 May 2023 22:02:51 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc