Skip to content

Commit

Permalink
Merge pull request ashi009#6 from ananyasaxena/master
Browse files Browse the repository at this point in the history
updating the type of options in the parse function
  • Loading branch information
taoqf authored Apr 11, 2019
2 parents 0411195 + 559050a commit 7cf8c31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ const kBlockTextElements = {
export function parse(data: string, options?: {
lowerCaseTagName?: boolean;
noFix?: boolean;
script?: boolean;
style?: boolean;
pre?: boolean;
}) {
const root = new HTMLElement(null, {});
let currentParent = root;
Expand Down Expand Up @@ -866,4 +869,4 @@ export function parse(data: string, options?: {
response.valid = valid;
return response;
}
}
}

0 comments on commit 7cf8c31

Please sign in to comment.