react-native-marked
Advanced tools
Comparing version
@@ -59,3 +59,3 @@ "use strict"; | ||
return this.renderer.heading(children, styles); | ||
return this.renderer.heading(children, styles, token.depth); | ||
} | ||
@@ -62,0 +62,0 @@ |
@@ -51,3 +51,3 @@ import { getValidURL } from "./../utils/url"; | ||
return this.renderer.heading(children, styles); | ||
return this.renderer.heading(children, styles, token.depth); | ||
} | ||
@@ -54,0 +54,0 @@ |
@@ -20,3 +20,3 @@ import type { ReactNode } from "react"; | ||
blockquote(children: ReactNode[], styles?: ViewStyle): ReactNode; | ||
heading(text: string | ReactNode[], styles?: TextStyle): ReactNode; | ||
heading(text: string | ReactNode[], styles?: TextStyle, depth?: number): ReactNode; | ||
code(text: string, language?: string, containerStyle?: ViewStyle, textStyle?: TextStyle): ReactNode; | ||
@@ -23,0 +23,0 @@ hr(styles?: ViewStyle): ReactNode; |
{ | ||
"name": "react-native-marked", | ||
"version": "5.0.9", | ||
"version": "5.1.0", | ||
"description": "Markdown renderer for React Native powered by marked.js", | ||
@@ -52,4 +52,4 @@ "main": "dist/commonjs/index", | ||
"devDependencies": { | ||
"@babel/core": "7.22.9", | ||
"@babel/preset-env": "7.22.9", | ||
"@babel/core": "7.22.10", | ||
"@babel/preset-env": "7.22.10", | ||
"@commitlint/config-conventional": "17.6.7", | ||
@@ -62,4 +62,4 @@ "@evilmartians/lefthook": "1.4.8", | ||
"@types/marked": "5.0.0", | ||
"@types/node": "18.17.3", | ||
"@types/react": "18.2.18", | ||
"@types/node": "18.17.4", | ||
"@types/react": "18.2.19", | ||
"@types/react-native": "0.72.2", | ||
@@ -166,3 +166,3 @@ "@types/react-native-table-component": "1.2.4", | ||
"marked": "5.0.5", | ||
"react-native-svg": "13.10.0", | ||
"react-native-svg": "13.11.0", | ||
"react-native-table-component": "1.2.2", | ||
@@ -175,5 +175,5 @@ "svg-parser": "2.0.4" | ||
"resolutions": { | ||
"@types/react": "18.2.18", | ||
"@types/react": "18.2.19", | ||
"@types/react-native": "0.72.2" | ||
} | ||
} |
@@ -32,3 +32,7 @@ import type { ReactNode } from "react"; | ||
blockquote(children: ReactNode[], styles?: ViewStyle): ReactNode; | ||
heading(text: string | ReactNode[], styles?: TextStyle): ReactNode; | ||
heading( | ||
text: string | ReactNode[], | ||
styles?: TextStyle, | ||
depth?: number, | ||
): ReactNode; | ||
code( | ||
@@ -35,0 +39,0 @@ text: string, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
185770
0.09%3122
0.13%+ Added
- Removed
Updated