@khanacademy/simple-markdown 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/es/index.js +0 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +0 -1
- package/dist/index.js.flow +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +13 -7
- package/{tsconfig.json → tsconfig-build.json} +0 -1
- package/{tsconfig.tsbuildinfo → tsconfig-build.tsbuildinfo} +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* Many of the regexes and original logic has been adapted from
|
|
18
18
|
* the wonderful [marked.js](https://github.com/chjj/marked)
|
|
19
19
|
*/
|
|
20
|
-
import * as React from "react";
|
|
21
20
|
import type { Capture, MatchFunction, State } from "./troublesome-types";
|
|
21
|
+
import type * as React from "react";
|
|
22
22
|
type Attr = string | number | boolean | null | undefined;
|
|
23
23
|
type SingleASTNode = {
|
|
24
24
|
type: string;
|
|
@@ -169,6 +169,16 @@ type Exports = {
|
|
|
169
169
|
readonly reactElement: (type: string, key: string | null, props: {
|
|
170
170
|
[key: string]: any;
|
|
171
171
|
}) => ReactElement;
|
|
172
|
+
/**
|
|
173
|
+
* defaultParse is deprecated, please use `defaultImplicitParse`
|
|
174
|
+
* @deprecated
|
|
175
|
+
*/
|
|
176
|
+
readonly defaultParse: (...args: any[]) => any;
|
|
177
|
+
/**
|
|
178
|
+
* defaultOutput is deprecated, please use `defaultReactOutput`
|
|
179
|
+
* @deprecated
|
|
180
|
+
*/
|
|
181
|
+
readonly defaultOutput: (...args: any[]) => any;
|
|
172
182
|
};
|
|
173
183
|
export type { State, Parser, Output, ReactOutput, HtmlOutput, Capture, MatchFunction, ParseFunction, NodeOutput, ArrayNodeOutput, ReactNodeOutput, ParserRule, ReactOutputRule, HtmlOutputRule, ParserRules, OutputRules, Rules, ReactRules, HtmlRules, SingleASTNode, };
|
|
174
184
|
declare var SimpleMarkdown: Exports;
|
package/dist/index.js
CHANGED
|
@@ -1390,7 +1390,6 @@ var SimpleMarkdown = {
|
|
|
1390
1390
|
// default wrappers:
|
|
1391
1391
|
markdownToReact: markdownToReact,
|
|
1392
1392
|
markdownToHtml: markdownToHtml,
|
|
1393
|
-
// @ts-expect-error [FEI-5003] - TS2322 - Type 'FC<any>' is not assignable to type '(props: { [key: string]: any; source: string; }) => ReactElement'.
|
|
1394
1393
|
ReactMarkdown: ReactMarkdown,
|
|
1395
1394
|
defaultBlockParse: defaultBlockParse,
|
|
1396
1395
|
defaultInlineParse: defaultInlineParse,
|
package/dist/index.js.flow
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
import * as React from "react";
|
|
8
7
|
import type { Capture, MatchFunction, State } from "./troublesome-types";
|
|
8
|
+
import * as React from "react";
|
|
9
9
|
declare type Attr = string | number | boolean | null | void;
|
|
10
10
|
declare type SingleASTNode = {
|
|
11
11
|
type: string,
|
|
@@ -228,6 +228,18 @@ declare type Exports = {|
|
|
|
228
228
|
[key: string]: any,
|
|
229
229
|
}
|
|
230
230
|
) => ReactElement,
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* defaultParse is deprecated, please use `defaultImplicitParse`
|
|
234
|
+
* @deprecated
|
|
235
|
+
*/
|
|
236
|
+
+defaultParse: (...args: any[]) => any,
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* defaultOutput is deprecated, please use `defaultReactOutput`
|
|
240
|
+
* @deprecated
|
|
241
|
+
*/
|
|
242
|
+
+defaultOutput: (...args: any[]) => any,
|
|
231
243
|
|};
|
|
232
244
|
export type {
|
|
233
245
|
State,
|