I might have found an issue with RStudio's handling of code section when they start with an umlaut (e.g. German ä, ö, ü). RStudio correctly recognises the section but it fails to detect the section level. This seems to also affect follwoing sections. I attached a screenshot depicting the issue.