Skip to content

Commit

Permalink
Export htmlTag() and reactElement()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pizzacus committed May 1, 2018
1 parent b527b02 commit 25cc9b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simple-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,8 @@ type Exports = {
+sanitizeText: (text: Attr) => string,
+sanitizeUrl: (url: ?string) => ?string,
+unescapeUrl: (url: string) => string,
+htmlTag: (tagName: string, content: string, attributes: ?{[any]: ?Attr}, isClosed: ?boolean) => string,
+reactElement: (type: string, key: string | null, props: { [string]: any }),
};
export type {
Expand Down Expand Up @@ -1877,6 +1879,8 @@ var SimpleMarkdown /* : Exports */ = {
sanitizeText: sanitizeText,
sanitizeUrl: sanitizeUrl,
unescapeUrl: unescapeUrl,
htmlTag: htmlTag,
reactElement: reactElement,

// deprecated:
defaultRawParse: defaultRawParse,
Expand Down

0 comments on commit 25cc9b3

Please sign in to comment.