GithubHelp home page GithubHelp logo

Comments (6)

thetbw avatar thetbw commented on May 13, 2024

解析出来了没样式啥的

markdown就是纯文本,一般markdown解析库都是都是支持自定义节点的

from for-editor.

huangguangfa avatar huangguangfa commented on May 13, 2024

from for-editor.

thetbw avatar thetbw commented on May 13, 2024

我看你的样式挺好看的 ,想弄成你的那种,可是我存入数据库后再取出来展示就不是你那种解析出来的样式

你看一下作者的预览页面,预览界面加了class,你数据库保存的只是纯文本。不会或者不想搞,可以找一下其他前端markdown渲染库,它们应该会把你的纯文本解析成dom节点并加上样式。

from for-editor.

huangguangfa avatar huangguangfa commented on May 13, 2024

from for-editor.

thetbw avatar thetbw commented on May 13, 2024

我看你的样式挺好看的,想弄成你的那种,可是我存入数据库后再收回来展示就不是你那种解析出来的样式

你看一下作者的依赖就会发现他用了highlight.js 和marked,你去看看这俩应该可以做出和作者一样的效果

from for-editor.

huangguangfa avatar huangguangfa commented on May 13, 2024

from for-editor.

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.