Bug 452238

Summary: Asciidoc highlighting of sub-documents
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Marcelo Escobal <marcelo.escobal>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: christoph, jonathan.poelen, silopolis, walter.von.entferndt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcelo Escobal 2022-04-03 20:35:07 UTC
SUMMARY
I have a master document that includes "sub-documents". The syntax highlighting only works if the document begins with "Level" 1:

= Titile of the document

but my "sub-documents" begin with level 2

== Chapetr

and the syntax hightlighting does not work.

STEPS TO REPRODUCE
1.  Create asciidoc master document that includes a sub-document
2.  Create subdocument that begins with title level > 1
3. Edit the subdocument in kate

OBSERVED RESULT

Headings aren't highlighted

EXPECTED RESULT

Headings should be highlighted regardless of the level at the beginning of the document

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION