We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a28de2e commit 6f896d3Copy full SHA for 6f896d3
view/src/app/markdown/markdown.ts
@@ -275,10 +275,11 @@ export class Markdown {
275
}
276
private _split(str: string): Array<string> {
277
const strs = new Array<string>()
278
- let h1, h2, min
+ let h1, h2, h3, min
279
while (true) {
280
h1 = str.indexOf('</h1>')
281
h2 = str.indexOf('</h2>')
282
+ h3 = str.indexOf('</h3>')
283
min = -1
284
if (h1 >= 0) {
285
min = h1
@@ -290,6 +291,14 @@ export class Markdown {
290
291
min = h2
292
293
294
+ if (h3 >= 0) {
295
+ if (min < 0) {
296
+ min = h3
297
+ } else if (h3 < min) {
298
299
+ }
300
301
+
302
if (min < 0) {
303
if (str.length > 0) {
304
strs.push(str)
0 commit comments