File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,4 +49,20 @@ describe('Blog', () => {
4949 cy . get ( 'a[href="/blog"]' ) . should ( 'exist' ) ;
5050 } ) ;
5151 } ) ;
52+
53+ describe ( 'Inline code styling' , ( ) => {
54+ before ( ( ) => {
55+ cy . visit ( '/blog/b200-glm5-nvfp4-vs-h200-fp8-3-6x-perf-per-dollar' ) ;
56+ } ) ;
57+
58+ it ( 'does not render generated backticks around inline code' , ( ) => {
59+ cy . contains ( 'article.prose code' , 'zai-org/GLM-5-FP8' )
60+ . first ( )
61+ . should ( ( $code ) => {
62+ expect ( $code . text ( ) ) . to . equal ( 'zai-org/GLM-5-FP8' ) ;
63+ expect ( getComputedStyle ( $code [ 0 ] , '::before' ) . content ) . to . equal ( 'none' ) ;
64+ expect ( getComputedStyle ( $code [ 0 ] , '::after' ) . content ) . to . equal ( 'none' ) ;
65+ } ) ;
66+ } ) ;
67+ } ) ;
5268} ) ;
Original file line number Diff line number Diff line change 2828 min-width : 100% ;
2929}
3030
31+ /* Inline code is already distinguished visually; omit Typography's generated backticks. */
32+ .blog-prose code ::before ,
33+ .blog-prose code ::after {
34+ content : none;
35+ }
36+
3137/* Remove auto-inserted curly quotes from blockquotes in blog prose */
3238.blog-prose blockquote p : first-of-type ::before ,
3339.blog-prose blockquote p : last-of-type ::after {
You can’t perform that action at this time.
0 commit comments