We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Code in answers is formatted incorrectly [answered]

asked 2013-12-26 06:30:32 +0200

Elleo gravatar image

updated 2013-12-26 17:38:32 +0200

When writing code involving underscores the Together site interprets this as markdown, even when surrounded by code or pre tags. For example: thishasunderscores.

The preview displays the correct output, however when the final version is displayed the output is formatted incorrectly.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Keto
close date 2013-12-27 17:28:51.961167

3 Answers

Sort by » oldest newest most voted
2

answered 2013-12-27 12:24:15 +0200

Keto gravatar image

updated 2013-12-27 12:28:07 +0200

"Code friendly" markdown has been enabled in posts, so now it should leave underscores alone and only interpret * as italic and ** as bold

For example: this_has_underscores.

edit flag offensive delete publish link more

Comments

Excellent, thanks!

Elleo ( 2013-12-27 15:26:00 +0200 )edit
0

answered 2013-12-26 12:23:28 +0200

qwazix gravatar image

Also <h3> headers do not display correctly in answers (they do in preview though)

###this is an h3

edit flag offensive delete publish link more
0

answered 2013-12-26 12:26:25 +0200

CsTom gravatar image

updated 2013-12-26 12:33:10 +0200

how about

using < pre > _tag_ ? 
edit flag offensive delete publish link more

Comments

interesting... I see that You say it doesn't work with pre, yet in the "answers" it shows up correctly for me. Maybe the markdown engine works differently for questions and answers?

CsTom ( 2013-12-26 12:29:57 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2013-12-26 06:30:32 +0200

Seen: 277 times

Last updated: Dec 27 '13