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 +0300

Elleo gravatar image

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

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
0

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

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 +0300

CsTom gravatar image

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

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 +0300 )edit
2

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

Keto gravatar image

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

"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 +0300 )edit

Question tools

Follow
2 followers

Stats

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

Seen: 262 times

Last updated: Dec 27 '13