@@ -435,6 +435,12 @@ test('legacy target', async () => {
435
435
.prose-headings\:text-ellipsis h4 {
436
436
text-overflow : ellipsis;
437
437
}
438
+ .prose-headings\:text-ellipsis h5 {
439
+ text-overflow : ellipsis;
440
+ }
441
+ .prose-headings\:text-ellipsis h6 {
442
+ text-overflow : ellipsis;
443
+ }
438
444
.prose-headings\:text-ellipsis th {
439
445
text-overflow : ellipsis;
440
446
}
@@ -621,7 +627,7 @@ test('element variants', async () => {
621
627
font-weight : 700 ;
622
628
}
623
629
.prose-headings\:underline
624
- : is (: where (h1, h2 , h3 , h4 , th ): not (: where ([class ~= 'not-prose' ] * ))) {
630
+ : is (: where (h1, h2 , h3 , h4 , h5 , h6 , th ): not (: where ([class~= 'not-prose' ] * ))) {
625
631
text-decoration-line : underline;
626
632
}
627
633
.prose-h1\:text-3xl : is (: where (h1): not (: where ([class ~= 'not-prose' ] * ))) {
@@ -793,7 +799,7 @@ test('element variants with custom class name', async () => {
793
799
font-weight : 700 ;
794
800
}
795
801
.markdown-headings\:underline
796
- : is (: where (h1, h2 , h3 , h4 , th ): not (: where ([class ~= 'not-markdown' ] * ))) {
802
+ : is (: where (h1, h2 , h3 , h4 , h5 , h6 , th ): not (: where ([class~= 'not-markdown' ] * ))) {
797
803
text-decoration-line : underline;
798
804
}
799
805
.markdown-h1\:text-3xl : is (: where (h1): not (: where ([class ~= 'not-markdown' ] * ))) {
@@ -970,3 +976,27 @@ it('should be possible to use nested syntax (&) when extending the config', () =
970
976
` )
971
977
} )
972
978
} )
979
+
980
+ it ( 'should be possible to specify custom h5 and h6 styles' , ( ) => {
981
+ let config = {
982
+ plugins : [ typographyPlugin ( ) ] ,
983
+ content : [
984
+ {
985
+ raw : html `<div class= "prose prose-h5:text-sm prose-h6:text-xl" > </ div> ` ,
986
+ } ,
987
+ ] ,
988
+ }
989
+
990
+ return run ( config ) . then ( ( result ) => {
991
+ expect ( result . css ) . toIncludeCss ( css `
992
+ .prose-h5\:text-sm : is (: where (h5): not (: where ([class ~= 'not-prose' ] * ))) {
993
+ font-size : 0.875rem ;
994
+ line-height : 1.25rem ;
995
+ }
996
+ .prose-h6\:text-xl : is (: where (h6): not (: where ([class ~= 'not-prose' ] * ))) {
997
+ font-size : 1.25rem ;
998
+ line-height : 1.75rem ;
999
+ }
1000
+ ` )
1001
+ } )
1002
+ } )
0 commit comments