FoldingText doesn't recognize tabbed code blocks


#1

According to the Markdown spec, code blocks can be indicated by either 4 spaces or a single tab. However, FoldingText only seems to recognize 4 spaces when applying block formatting appearance to code. Any chance we can get tabbed code blocks working?


#2

Unfortunately this is a case where the outliner aspect of FoldingText conflicts with the markdown spec. FoldingText uses tabs to create free form outline hierarchies, so it can’t also recognize tabs to create markdown code blocks.


#3

Perhaps, in retrospect, Gruber missed a trick there, and didn’t think of outlining as a potential application.

( In the FoldingText outliner, if you want to mark a line as code, only the last four bytes of the leading white space actually need to be spaces, you can precede those 4 spaces with any number of tabs )