Can I word-wrap long columns in GitHub-compatible Markdown?

醉酒当歌 提交于 2019-12-04 05:53:42
mbb

It's not a markdown feature since markdown doesn't result in a rendered view. The app that's rendering your markdown is what's in charge of spacing. For example, I used your exact file in a GH repo and it looks good:

I then added even more text to see if it gets ugly. It still looks good:

The way GitHub renders the site makes it pretty. Whatever app you're viewing it in needs to implement something similar, that may look like this CSS:

div {
    width: 200px;
    word-wrap: break-word;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!