Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

GFM style line breaks syntax missing.. #20

Closed
tiye opened this issue Oct 18, 2012 · 8 comments
Closed

GFM style line breaks syntax missing.. #20

tiye opened this issue Oct 18, 2012 · 8 comments

Comments

@tiye
Copy link

tiye commented Oct 18, 2012

Marked said in its README that it supports gfm by default. But I found it still hard to markup line breaks.
So does Ost. I'm just confused. In my view, line breaks are much more useful and nature. Please support that.

@paulmillr
Copy link
Owner

Can you provide an example?

@tiye
Copy link
Author

tiye commented Oct 18, 2012

@paulmillr Example about the inconvenience or the marked parsing result?
case 2) -> http://ost.io/coffee-js/languages/topics/2
case 1.... Maybe not that bad in English.... I use Chinese in most of my time. Without line breaks, there would be over 50 characters in one line, that can be hard to read.
coffee-js/languages#2
seajs/seajs#277
-> http://book.douban.com/review/5618471/

@paulmillr
Copy link
Owner

test
test
test
test

@paulmillr
Copy link
Owner

right. markedjs/marked#81 seems to be the issue

@paulmillr
Copy link
Owner

closing as this ain't an issue of ostio, rather than marked

@tiye
Copy link
Author

tiye commented Jun 12, 2013

Hi, this issue is fixed by marked: markedjs/marked#51
According to the marked API, adding breaks: yes in your code may work.
// I'll try to see if I can pick Chaplin...


Havn't found the reason but breaks: yes isn't work there.

@fatmind
Copy link

fatmind commented Apr 13, 2014

@jiyinyiyong 不知道这个问题,你解决了吗 ? 方法是 ? 谢谢

@tiye
Copy link
Author

tiye commented Apr 14, 2014

@fatmind If you are looking for a Markdown coverter you can use Markded with breaks: true.
For Ostio, i'm not sure, probably it's still using the code that generates no breaks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants