Skip to content

Commit 3ee8d58

Browse files
committed
feat: add type definition for quoteStyle
1 parent 38b2b04 commit 3ee8d58

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ declare namespace render {
2424
* @default true
2525
*/
2626
quoteAllAttributes: boolean;
27+
28+
/**
29+
* Quote style
30+
*
31+
* 0 - Smart quotes
32+
* <img src="https://example.com/example.png" onload='testFunc("test")'>
33+
* 1 - Single quotes
34+
* <img src='https://example.com/example.png' onload='testFunc("test")'>
35+
* 2 - double quotes
36+
* <img src="https://example.com/example.png" onload="testFunc("test")">
37+
*
38+
* @default 2
39+
*/
40+
quoteStyle: 0 | 1 | 2
2741
};
2842

2943
// PostHTML Tree

0 commit comments

Comments
 (0)