Skip to content

Commit 7135069

Browse files
committed
feat: add type for style tag
1 parent 1557fcf commit 7135069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DEFAULT_REPLACE_CONFIG: ReplaceConfig = {
3131
export default class Plugin
3232
{
3333
static addStyle(html: string, style: string, replaceConfig: ReplaceConfig) {
34-
const styleString = `<style>${style}</style>`;
34+
const styleString = `<style type="text/css">${style}</style>`;
3535
const replaceValues = [styleString, replaceConfig.target];
3636

3737
if (replaceConfig.position === 'after') {

0 commit comments

Comments
 (0)