Giter Site home page Giter Site logo

Markdown 支持程度不够 about halo HOT 14 CLOSED

halo-dev avatar halo-dev commented on May 17, 2024
Markdown 支持程度不够

from halo.

Comments (14)

ruibaby avatar ruibaby commented on May 17, 2024

@namxedoc 用的是markdown标准库,这么多人需要支持数学公式,那我就想办法加一个吧。

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

感谢大大~

from halo.

ruibaby avatar ruibaby commented on May 17, 2024

已支持。ruibaby@efd874b

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

好像还是有点小问题。。
image
绿框的是ok了,红框还是有问题,这篇文章原文我是写在csdn上的,这些符号都能被识别的
我发现,gamma 这个小符号是没问题的,但是公式就会有问题 除非 你在公式前后加上 标签 像这样:
image
中间的数学公式就会被markdown语法解析,不然就是普通的字符串,求大大帮忙看下

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

。。接上一个comment,而且 ok只是预览 ok,但是发布之后 到浏览的页面 那些绿框并没有ok,像这样:
image
麻烦大大了。。。

from halo.

ruibaby avatar ruibaby commented on May 17, 2024

@namxedoc 我测试用$$$$隔开是没有问题的啊, 另外要在前台页面显示的话,现在貌似就Next主题支持,其他主题都没有MathJax插件的

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

image
next 主题我已经安装好了,zip本地安装或者远程git安装都试过了,docker 也restart过了,但是换到next主题的话,访问主页就会变成空白的(只有一根黑线),像这样:
image
不小心出另一个issue了,难道是我姿势不对吗

from halo.

ruibaby avatar ruibaby commented on May 17, 2024

@namxedoc 不会的吧,这个bug是很久之前的了,早就解决了,我有空再看看

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

麻烦大大了。。。。我也不是很急的,大大注意身体

from halo.

ruibaby avatar ruibaby commented on May 17, 2024

@kaixinbaba 已经提交了,我去网上搜了很多mathjax的公式,都已经完美支持了,过两天我再发布版本。ruibaby@7d452d5

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

又要求助大大了。。
首先我安装了并启用了next主题
image
可以看到在对比和预览模式中,公式被显示的完好
image
但是前台显示还是不行
image
用的部署方式也是 主页下readme中的docker方式
image
docker 拉取的镜像是9天前创建的,而大大之前跟我提到的commitid是17天前,应该是最新的了吧
image
求助大大,所以是我姿势不对还是哪里不对?我想要的是前台也完美显示markdown公式~麻烦了

from halo.

ruibaby avatar ruibaby commented on May 17, 2024

又要求助大大了。。
首先我安装了并启用了next主题
image
可以看到在对比和预览模式中,公式被显示的完好
image
但是前台显示还是不行
image
用的部署方式也是 主页下readme中的docker方式
image
docker 拉取的镜像是9天前创建的,而大大之前跟我提到的commitid是17天前,应该是最新的了吧
image
求助大大,所以是我姿势不对还是哪里不对?我想要的是前台也完美显示markdown公式~麻烦了

在next的主题设置里把mathjax启用

from halo.

kaixinbaba avatar kaixinbaba commented on May 17, 2024

我在next的主题设置里没有找到mathjax。。但是我在Material主题里找到了并启用了,效果是ok的。。。什么主题我是无所谓的~反正 感谢大大了~拜个晚年,祝大大猪事顺利

from halo.

ruibaby avatar ruibaby commented on May 17, 2024

@kaixinbaba 好的,晚点看看NexT的mathjax

from halo.

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.