Tables in Notes & Markdown


(Matt Mower) #1

Hi.

I’m trying to figure out how to add a table to one of my notes.

I’ve turned on the ruler and while it supports lists I couldn’t see an option for tables. I’ve also tried using Markdown but the Markdown processor doesn’t appear to support the |–|--|–| syntax.

How do people do tables?

Thanks.

Matt


(Mark Anderson) #2

Format > Text > Table?


(Niran Sabanathan) #3

Here is a previous discussion about using markdown (and multimarkdown).

Is it possible in Tinderbox to include a css style sheet to customize markdown/multimarkdown preview ?


(Mark Anderson) #4

Is it possible now? No. But by all means email in a feature suggestion to Eastgate.

Partial untested solution. When previewing, if the page/site has already been exported, the preview uses JS libraries, CSS, etc., within the exported folders. This might solve your CSS issue.

Bear in mind that historically ‘preview’ was designed for previewing (HTML) export and so wasn’t intended de novo for in-app rendering.


(eastgate) #5

Actually, I believe the new markdown facility does understand tables. Of course, you’ll need to use the Markdown prototype, or derive your own prototype from it. The Markdown prototype uses the classic Markdown syntax, but if you prefer another – MultiMarkdown, perhaps – just install it and specify the appropriate path in $HTMLPreviewCommand.


(Matt Mower) #7

Brilliant Mark, thanks.


(Matt Mower) #8

That was my experience also.


(eastgate) #10

Right: Tables aren’t supported in classic Markdown. https://daringfireball.net/projects/markdown/syntax

But you can easily install the markdown of your choice and set the prototype’s path accordingly.


(eastgate) #12

You want to set $HTMLPreviewCommand, which runs before preview.

$HTMLExportCommand runs on exported files after export, and is useful if you need to modify the exported HTML.