Coder Social home page Coder Social logo

Comments (10)

F-loat avatar F-loat commented on June 4, 2024

目前你服务端保存的内容中保留了换行符 \n

from vue-simplemde.

lance10030 avatar lance10030 commented on June 4, 2024

编写的时候不会去敲换行符。我是直接将this.content 的结果保存到服务端。打出来之后是没有换行符的,就像您给出的demo page中点击‘输出MARKDOWN’得到的结果一样。是我配置错了吗?我好像没找到相关的配置项。

from vue-simplemde.

F-loat avatar F-loat commented on June 4, 2024

你截图给我看一下编辑好的效果和请求回来的效果吧,然后我待会儿试一下,现在手边没电脑

from vue-simplemde.

lance10030 avatar lance10030 commented on June 4, 2024

上传之前拿到的生成的内容就没有换行符的就像demo page中的生成结果一样
1513666410 1

from vue-simplemde.

F-loat avatar F-loat commented on June 4, 2024

生成的内容里应该是有换行符 \n 的,你可以在 vue-devtools 里查看下,demo中不显示是因为 \n 这个字符在普通的标签里会变成空格,使用 pre 标签就可以保留换行的效果

from vue-simplemde.

lance10030 avatar lance10030 commented on June 4, 2024

啊,不好意思,是我疏忽了。太麻烦您了。谢谢。

from vue-simplemde.

F-loat avatar F-loat commented on June 4, 2024

没事的😋,我之前也是没注意到这个

from vue-simplemde.

lance10030 avatar lance10030 commented on June 4, 2024

from vue-simplemde.

F-loat avatar F-loat commented on June 4, 2024

这个应该不支持,可以参考这篇文章自己添加(给marked增加TOC

from vue-simplemde.

lance10030 avatar lance10030 commented on June 4, 2024

thx

from vue-simplemde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.