Skip to content

Commit

Permalink
fix: specify return type for removep
Browse files Browse the repository at this point in the history
  • Loading branch information
jpstevens committed May 10, 2024
1 parent 670dd21 commit 761fc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/autop/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export function autop( text: string, br: boolean = true ): string {
*
* @return {string} The content with stripped paragraph tags.
*/
export function removep( html: string ) {
export function removep( html: string ): string {
const blocklist =
'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure';
const blocklist1 = blocklist + '|div|p';
Expand Down

0 comments on commit 761fc46

Please sign in to comment.