Use indentation instead of brackets

I want to use indentation like when we use ‘{}’ the cursor is indented on the next line
for example it should work like this

any words
subtopic of this word

Here the second line should auto indent when I press enter after the first line

You can build that with CodeMirror, but you’ll have to read the docs and learn the API to do so.