question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid level of header

See original GitHub issue

I tested this markdown using this javascript validator for getting the content of header.

#1

ああああああああああああああ

## 1.1

あああああああああああああ

### 1.1.1

あああああああああああああ

#2

ああああああああああああああ

## 2.1

ああああああああああ。
function validateSection(section){
    console = {
        log:print
    };


    console.log(section.getLevel())
    console.log(section.getHeaderContent(0))
}

The result of this test was as below. What is the section of level 0 ?

0
Sentence{links=[], lineNumber=0, content='', startPositionOffset=0, isFirstSentence=false, tokens=[], offsetMap=[]}
1
Sentence{links=[], lineNumber=1, content='1', startPositionOffset=2, isFirstSentence=true, tokens=[], offsetMap=[LineOffset(1, 2)]}
2
Sentence{links=[], lineNumber=5, content='1.1', startPositionOffset=3, isFirstSentence=true, tokens=[], offsetMap=[LineOffset(5, 3), LineOffset(5, 4), LineOffset(5, 5)]}
3
Sentence{links=[], lineNumber=9, content='1.1.1', startPositionOffset=4, isFirstSentence=true, tokens=[], offsetMap=[LineOffset(9, 4), LineOffset(9, 5), LineOffset(9, 6), LineOffset(9, 7), LineOffset(9, 8)]}
1
Sentence{links=[], lineNumber=13, content='2', startPositionOffset=2, isFirstSentence=true, tokens=[], offsetMap=[LineOffset(13, 2)]}
2
Sentence{links=[], lineNumber=17, content='2.1', startPositionOffset=3, isFirstSentence=true, tokens=[], offsetMap=[LineOffset(17, 3), LineOffset(17, 4), LineOffset(17, 5)]}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kongou-aecommented, May 30, 2016

@takahi-i , Thank you for your detailed explanation. I understood the reason of the level zero section 0. I am looking forward to be implemented #648.

0reactions
takahi-icommented, Jun 1, 2016

Hello @kongou-ae, I merged the fix for this problem in #648. Hopefully the fix works for you. Let me know when the fix does not work adding another issue or reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect Heading Order - Equalize Digital
An Incorrect Heading Order error means your heading structure has skipped over a level. For example, if your page structure has a level...
Read more >
Error 10012 - Invalid value for header
This error message indicates that the value passed in the header is invalid. From the LongMessage tag, it indicates that US is not...
Read more >
How to fix the "Invalid Header" error for CSV uploads
This error is usually caused by formatting or white space changes in the header of the CSV file you're attempting to upload. You...
Read more >
Numbered Header Level 3 is Wrong - Microsoft Community
My problem is that Heading 3 is consistently wrong. As I look at the heading levels in the Styles section of the ribbon,...
Read more >
Inconsistent "invalid header value" response codes · Issue #464
Hi, After searching through some older issues, it looks like it was agreed that an invalid header value would return a 406 error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found