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 => {
95
95
const { text } = content . data ;
96
96
97
97
if ( ! text ) {
98
- return text ;
98
+ return content . children ;
99
99
}
100
100
101
101
// Try to get full name; fallback slices text after first colon
@@ -108,8 +108,8 @@ export const extractHeadingContent = content => {
108
108
// Find the index of the first colon, i.e. `Class:`.
109
109
const colonPos = findText ( content , ':' ) [ 0 ] ;
110
110
111
- if ( colonPos === - 1 ) {
112
- return text ;
111
+ if ( ! colonPos ) {
112
+ return content . children ;
113
113
}
114
114
115
115
// Slice out the prefix from the index gotten above.
Original file line number Diff line number Diff line change 7
7
}
8
8
9
9
main {
10
- overflow : hidden ;
10
+ overflow-x : scroll ;
11
11
12
12
/* Code should inherit its font size */
13
13
code {
You can’t perform that action at this time.
0 commit comments