@@ -87,7 +87,25 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
8787 ensureID ( toc ) ;
8888 }
8989
90- const isComponentCodeDocs = [ 'react' , 'react-demos' , 'html' , 'html-demos' , 'react-templates' ] . includes ( source ) ;
90+ // Markdown sourced from component/code repos needs editorial paragraph spacing.
91+ const isProseContent = [
92+ 'react' ,
93+ 'react-next' ,
94+ 'react-deprecated' ,
95+ 'react-demos' ,
96+ 'react-templates' ,
97+ 'html' ,
98+ 'html-demos' ,
99+ 'html-deprecated' ,
100+ 'ECharts-docs' ,
101+ 'ECharts' ,
102+ 'ECharts-next' ,
103+ '-Victory' ,
104+ '-Victory-next' ,
105+ 'ai-guidelines' ,
106+ 'extensions' ,
107+ 'components'
108+ ] . includes ( source ) ;
91109
92110 const InlineAlerts = ( optIn ||
93111 beta ||
@@ -134,22 +152,26 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
134152 ) ;
135153 // Create dynamic component for @reach/router
136154 const ChildComponent = ( ) => (
137- < div className = { source !== 'landing-pages' ? 'pf-v6-l-flex pf-v6-m-column pf-m-nowrap-on-2xl' : '' } data-content-source = { source } >
155+ < div
156+ className = { source !== 'landing-pages' ? 'pf-v6-l-flex pf-v6-m-column pf-m-nowrap-on-2xl' : '' }
157+ data-content-source = { source }
158+ { ...( isProseContent && { 'data-prose-content' : true } ) }
159+ >
138160 { toc . length > 1 && < TableOfContents items = { toc } /> }
139- < Stack hasGutter className = { ( source !== 'landing-pages' && 'ws-example-page-wrapper' ) } >
161+ < Stack hasGutter = { ! isProseContent } className = { ( source !== 'landing-pages' && 'ws-example-page-wrapper' ) } >
140162 { InlineAlerts }
141163 < Component />
142164 { functionDocumentation . length > 0 && (
143165 < StackItem >
144- < AutoLinkHeader headingLevel = "h2" className = "pf-v6-c-content--h2" id = "functions" >
166+ < AutoLinkHeader headingLevel = "h2" className = "pf-v6-c-content--h2 ws-stack-section-heading " id = "functions" >
145167 Functions
146168 </ AutoLinkHeader >
147169 < FunctionsTable functionDescriptions = { functionDocumentation } />
148170 </ StackItem >
149171 ) }
150172 { propsTitle && (
151173 < StackItem >
152- < AutoLinkHeader headingLevel = "h2" className = "pf-v6-c-content--h2" id = "props" >
174+ < AutoLinkHeader headingLevel = "h2" className = "pf-v6-c-content--h2 ws-stack-section-heading " id = "props" >
153175 { propsTitle }
154176 </ AutoLinkHeader >
155177 { propComponents . map ( ( component ) => (
@@ -165,7 +187,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
165187 ) }
166188 { cssPrefix . length > 0 && (
167189 < StackItem >
168- < AutoLinkHeader headingLevel = "h2" className = "pf-v6-c-content--h2" id = "css-variables" >
190+ < AutoLinkHeader headingLevel = "h2" className = "pf-v6-c-content--h2 ws-stack-section-heading " id = "css-variables" >
169191 { cssVarsTitle }
170192 </ AutoLinkHeader >
171193 { cssPrefix . map ( ( prefix , index ) => (
0 commit comments