Sublime Forum

Does minihtml support the pre tag?

#1

I couldn’t find the docs.

I tried it in sublime and I would say that it doesn’t,
because it doesn’t preserve white-space.

But just to be sure, does minihtml support the <pre> tag?

1 Like

#2

http://www.sublimetext.com/docs/3/minihtml.html

try <code> maybe?

1 Like

#3

Thanks for replying.
Already tried it, but it doesn’t preserve white-space.

1 Like

#4

Yeah, you kind of have to process the content yourself and format it with nbsp instead of spaces and tabs etc. That’s really the best that can be done. It would be nice if minihtml supported pre/code out of the box. That’s how it’s handled here: https://github.com/facelessuser/sublime-markdown-popups.

1 Like

#5

So replacing \n with <br> is currently the only way to wrap new lines in minihtml.
Thanks for the reply

2 Likes