Code Monkey home page Code Monkey logo

Comments (7)

QingWei-Li avatar QingWei-Li commented on May 17, 2024

这不是这里能做的 😂 内置的是 marked 你可以去它的仓库里提 issue

from docsify.

hifizz avatar hifizz commented on May 17, 2024

@QingWei-Li ...... 好吧

from docsify.

nimoc avatar nimoc commented on May 17, 2024
marked('离离原  \n上草,一岁一枯荣。野火烧不尽,春风吹又生。远芳侵古道,晴翠接荒城。又送王孙去,萋萋满别情。')
<p>离离原<br>上草,一岁一枯荣。野火烧不尽,春风吹又生。远芳侵古道,晴翠接荒城。又送王孙去,萋萋满别情。</p>

这样写

中文一二三{空白符}{空白符}
第二行文字

from docsify.

hifizz avatar hifizz commented on May 17, 2024

@nimojs 卧槽还有这样的黑科技。。。这样确实满足了我的要求。

from docsify.

nimoc avatar nimoc commented on May 17, 2024

@hifizz
marked 的配置项也挺多的,你可以看看。基本上能满足大部分的书写需求。不能满足的就找类似 markrun 这样的增强插件

from docsify.

egoist avatar egoist commented on May 17, 2024

其实你也可以直接写 <br> 😂

from docsify.

egoist avatar egoist commented on May 17, 2024
> require('marked')('我爱\n你')
'<p>我爱\n你</p>\n'
> require('marked')('我爱\n你', {breaks:true})
'<p>我爱<br>你</p>\n'

from docsify.

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.