Hexo-theme-next: Hexo 换行问题

Created on 20 May 2017  ·  4Comments  ·  Source: iissnan/hexo-theme-next

Expected behavior (预期行为)

在文本编辑器中回车,在页面上不换行

Actual behavior (实际行为)

在文本编辑器中回车,在页面上换行了,安装markdown的语法应该是
两个空格加回车才是换行呀

Steps to reproduce the behavior (重现步骤)

NexT Information

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master
  • Latest Release
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces

Other Information (Like Browser, System, Screenshots)

Most helpful comment

与NexT主题无关, Hexo利用自带的解析器对md源文件进行解析. 也许可行的解决方案:

  1. 安装 hexo-renderer-marked

sh npm install hexo-renderer-marked --save

不过最新的Hexo貌似已经装上了这个.

  1. 在站点配置文件中加上:

yaml marked: gfm: true pedantic: false sanitize: false tables: true breaks: false smartLists: true smartypants: true modifyAnchors: '' autolink: true
这样就可以在一行自由敲回车了:satisfied:

All 4 comments

我也很纠结这个换行的问题,如果自己换行的话网页排版出来实在是丑的可以。。。。现在我只能一行写好长好长才能换个行好烦

与NexT主题无关, Hexo利用自带的解析器对md源文件进行解析. 也许可行的解决方案:

  1. 安装 hexo-renderer-marked

sh npm install hexo-renderer-marked --save

不过最新的Hexo貌似已经装上了这个.

  1. 在站点配置文件中加上:

yaml marked: gfm: true pedantic: false sanitize: false tables: true breaks: false smartLists: true smartypants: true modifyAnchors: '' autolink: true
这样就可以在一行自由敲回车了:satisfied:

@payne4handsome solved?
And is i see and as write before, trouble in global Hexo, not in theme Next.

@ivan-nginx It's really the 'trouble' in hexo, and was solved in several issues of hexo(and it works well for me), this issue should be closed.

Ref

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DVD0423 picture DVD0423  ·  3Comments

liyuan989 picture liyuan989  ·  3Comments

aiplay picture aiplay  ·  4Comments

dev-fancyluo picture dev-fancyluo  ·  3Comments

online picture online  ·  3Comments