File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export const extractHeadingContent = content => {
9595 const { text } = content . data ;
9696
9797 if ( ! text ) {
98- return text ;
98+ return content . children ;
9999 }
100100
101101 // Try to get full name; fallback slices text after first colon
@@ -108,8 +108,8 @@ export const extractHeadingContent = content => {
108108 // Find the index of the first colon, i.e. `Class:`.
109109 const colonPos = findText ( content , ':' ) [ 0 ] ;
110110
111- if ( colonPos === - 1 ) {
112- return text ;
111+ if ( ! colonPos ) {
112+ return content . children ;
113113 }
114114
115115 // Slice out the prefix from the index gotten above.
Original file line number Diff line number Diff line change 77}
88
99main {
10- overflow : hidden ;
10+ overflow-x : scroll ;
1111
1212 /* Code should inherit its font size */
1313 code {
You can’t perform that action at this time.
0 commit comments