GithubHelp home page GithubHelp logo

Comments (13)

 avatar commented on September 20, 2024 1

我添加了两个cdn,已解决,谢谢

from hexo-filter-mathjax.

issue-label-bot avatar issue-label-bot commented on September 20, 2024

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.68. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on September 20, 2024

Thanks for your suggestion. Fixed in f6c7d7e

from hexo-filter-mathjax.

 avatar commented on September 20, 2024

It still doesn't seem to work. If both are set to false, css will not be loaded. Do not load css even if the article sets mathjax to true

Snipaste_2020-09-24_05-08-18
Snipaste_2020-09-24_05-06-53
Snipaste_2020-09-24_05-07-25

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on September 20, 2024

Docs updated: 1de71bd

from hexo-filter-mathjax.

 avatar commented on September 20, 2024

在home页也加载到了渲染出来了<style>,是不是再加个is_post()来判断呢

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on September 20, 2024

home 页需要加载 style,否则文章摘要中的数学公式显示不正确

from hexo-filter-mathjax.

 avatar commented on September 20, 2024

有个问题想请教下,我hexo使用的是默认装有的prismjs代码高亮,我在里边看到了有个copy的插件,但是我不知道如何启用这个插件,您知道么
Snipaste_2021-01-06_01-12-56

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on September 20, 2024

您好,Hexo 只集成了 prismjs 的基础功能,并没有包含代码复制插件。必须要 Hexo 主题支持,才能使用这一功能。

from hexo-filter-mathjax.

 avatar commented on September 20, 2024

您好,我目前在写hexo模板主题,我应该如果修改呢或者调用呢,第一次接触这个。

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on September 20, 2024

prismjs 的代码复制需要在前端加载三个 js 和一个 css:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/plugins/toolbar/prism-toolbar.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/toolbar/prism-toolbar.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/copy-to-clipboard/prism-copy-to-clipboard.js"></script>

from hexo-filter-mathjax.

 avatar commented on September 20, 2024

您好,添加后有按钮了也可以使用,但似乎和hexo集成的冲突了,代码的样式和行号不渲染出来了

没有添加
1

添加后
2

from hexo-filter-mathjax.

stevenjoezhang avatar stevenjoezhang commented on September 20, 2024

在 Hexo _config.yml 中禁用 prismjs.preprocess:

prismjs:
  enable: true
  preprocess: false
  line_number: true
  tab_replace: ''

from hexo-filter-mathjax.

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.