Markdown Plugin and Code Blocks

84 views
Skip to first unread message

Captain Packers

unread,
Jun 20, 2018, 10:15:06 AM6/20/18
to tiddl...@googlegroups.com
I'm thinking about developing documentation for a GitHub project using TiddlyWiki, but I don't like the way the markdown plugin is handling code blocks.

Rather than giving me a "block" of code in a sort of a framed pre-formated fashion, it looks more like the inline code, the red text with white background, and I don't think it looks good.

Does anyone know how to format code with this plugin so that it literally looks like a block?

Thanks in advance. 

TonyM

unread,
Jun 20, 2018, 10:37:22 AM6/20/18
to TiddlyWiki
Have you tried surrounding your block with the monospaced editor tool bar button., which results in

```
Your code
here
```

Captain Packers

unread,
Jun 20, 2018, 11:20:58 AM6/20/18
to TiddlyWiki
If you change the TYpe: to text/x-markdown, the monospaced button surrounds the text with a single quote, and you get the "inline" style formatting.

Manually surrounding with backticks still gives "inline" style formatting, with an extra "inline" character (white background only, no text) above the line of code. (That may be hard to follow, but I don't know how to show it. I guess I could attach a screen shot if it would help.)

Captain Packers

unread,
Jun 20, 2018, 11:28:42 AM6/20/18
to TiddlyWiki
Got it! You indent 4 or more spaces.
Thanks.


On Wednesday, June 20, 2018 at 10:37:22 AM UTC-4, TonyM wrote:

TonyM

unread,
Jun 20, 2018, 7:15:19 PM6/20/18
to TiddlyWiki
Screen Shot please, then I will know what you were trying to achieve, I am curious.

Thanks
Tony
Reply all
Reply to author
Forward
0 new messages