@@ -17,7 +17,7 @@ export default function previewMarkdownDirective(md) {
1717 return ;
1818 }
1919
20- const { file, title, id } = attrs ;
20+ const { file, title, id, tall } = attrs ;
2121
2222 let htmlContent ;
2323 try {
@@ -43,6 +43,7 @@ export default function previewMarkdownDirective(md) {
4343 const previewTitle = escape ( title || "Preview" ) ;
4444 const previewId = id || `preview_${ directiveStartLine } ` ;
4545 const pathPrefix = process . env . SITE_ENV === "production" ? "/roux" : "" ;
46+ const isTall = tall === "true" ;
4647
4748 // create a markdown HTML block
4849 const token = state . push ( "html_block" , "" , 0 ) ;
@@ -52,6 +53,7 @@ export default function previewMarkdownDirective(md) {
5253 previewTitle ,
5354 htmlContent ,
5455 pathPrefix ,
56+ isTall ,
5557 ) ;
5658 } catch ( error ) {
5759 console . error ( "Error rendering preview" , error ) ;
@@ -83,9 +85,9 @@ function generatePreviewIframeContent(title, htmlContent, pathPrefix) {
8385` ;
8486}
8587
86- function generatePreviewHtml ( id , title , htmlContent , pathPrefix ) {
88+ function generatePreviewHtml ( id , title , htmlContent , pathPrefix , isTall ) {
8789 return `
88- <div class="component-example">
90+ <div class="component-example${ isTall ? " component-example--tall" : "" } ">
8991 <div role="tablist" aria-labelledby="${ id } " class="automatic">
9092 <button
9193 id="tab-preview-${ id } "
0 commit comments