Codemirror allows us to use variable height (see this demo with some markdown) and with the markdown syntax you can write a title with #
or underline it with =
or -
.
Unfortunately variable height only works if tags and title are on the same line, if we use =
the title is not bigger:
I have try to code something (jsfiddle) but it is hacky not very clean and don't work in all situations.
Someone has an idea? Is there a clean solution? Thank you in advance!
The issue was finally closed the 22 Jun 2017. The lookahead was implemented in CodeMirror 5.27.0.
The function lookAhead
is able to handle the n-th line and thus is it possible to implement what I needed with a clean solution.
The variable height example was updated and the bug is not present anymore.