How can I spin down a code block from a description line?

Things I have tried

I’ve played with adding or deleting spaces, tabs, extra new lines between the table name and the code but while I get different results none are quite what I am looking for.

What I’m trying to do

I’m trying to create notes that have the create code for the tables in an SQLite database that I use in my open source animal management program.

What I want is to have the table name then a spin down that is the code block for the create command for that table.

What I am getting is this:

The code blocksare displaying properly but the spin down is on the top line of the code block not on the table name.

Can anyone help in how to fix the markdown to make it work the way I am expecting?

You can configure “folding” for headings and lists:


So, you may define the table name as a heading:

#### tissue_sample_type_table

This is how is shown in edit mode vs preview mode

Hope this helps you!

Thank you.

I still have an extra folding in the code block but I can live with that. It’s just so much easier to fold up all the code and move things around then unfold as necessary. :grinning:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.