Invalid level of header
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
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.