getMarkdownHeaders "headers" regex null
I have a RAML file:

But the documentation section in api console doesn't show the content; just the titles:

I narrowed down the problem to the getMarkdownHeaders function:

If I change the function so that
headers = true
it throws a few exceptions but it shows the content of the documentation:

Which isn't exactly pretty.
Are there some special characters I need to put in the beginning of my content?
PS: I have virtually zero experience with Regex.
Hi @jeppe1990, thanks for looking into this, @juancoen, @xaka, can you guys give me a hand looking over this?
Hi @jeppe1990, that function tries to match Markdown headers (lines starting with #) to display them as sub-sections below each title of the documentation. If no headers are found, to see the content of a documentation section, a user has to click on the title (in your example, clicking on Home will display the content of that documentation section).
I've flagged this as a UX improvement as it can be confusing.
Thanks!
In the image I included showing the UI ("home" and "legal") I actually clicked on the Home tab before making the screenshot. There is simply no text, if markdown headers are not present. I believe that this must be a mistake since the RAML spec concerning the documentation section only use plain text and no specific markdown syntax in the "content" section (it's simply text): RAML spec concerning User documentation In other words, for text to show up in the documentation section of API Console it seems that text must contain symbols, that are not required by the RAML spec. That's not really a problem if this was evident in the API Console documentation.
Fixed with https://github.com/mulesoft/api-console/commit/c74eacde58e40d1d79c4885b15fa3ff210b6610c