Code Monkey home page Code Monkey logo

Comments (4)

TooBug avatar TooBug commented on May 18, 2024

这个是不是业务中自己处理再丢给wemark就好?貌似它不属于markdown解析的工作。

from wemark.

hyacinthus avatar hyacinthus commented on May 18, 2024

好吧,这个确实不是基础的 markdown 标准,只是一些地方在用。

如果觉得不合适就算啦。

我想像 jekyll 或者 hugo 那样,通过元数据去渲染标题作者时间等信息。
然后正文用您这个插件渲染。

我也考虑了一下能不能改这个插件把这些全都支持了,貌似不容易。

from wemark.

hyacinthus avatar hyacinthus commented on May 18, 2024

这个英文里更普遍的叫法是 front matter

https://github.com/jxson/front-matter

因为这个库的使用场景应该是直接读取s3这样的对象存储中的md渲染,并不经过后端,
所以引用个库解析一下,或者加个配置开关也是不错的。

还可以考虑智能的用 title 字段当成文章标题,渲染常见的时间,来源,作者等字段。。。

当然选择不解析也没什么问题。关掉这个issue就好。

from wemark.

imaiya avatar imaiya commented on May 18, 2024

这个确实是有一部分需求的,我也遇到了,不过我自己在后台处理了一下

from wemark.

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.