When updating the CDN version of `MathJax` and `Mermaid`, does the Anqi CMS need to manually modify the script link?

Calendar 78

AnQi CMS is a high-efficiency and customizable content management system, dedicated to providing users with rich content display capabilities.In content creation, to support complex mathematical formulas and flow charts, etc., Anqi CMS introduces integration support for third-party libraries - MathJax and Mermaid through its built-in Markdown editor.These libraries are usually loaded through content delivery networks (CDN) to ensure ** performance and reliability.

According to the Anqi CMS documentation, if users want to display mathematical formulas and flowcharts inserted through the Markdown editor correctly on the frontend page, they need to do so in their template file (for example,base.html)的<head>Partially manually add specific CDN script links. For example, the CDN link provided for MathJax in the document ishttps://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js,specifies the third major version of MathJax, and the CDN link of Mermaid.https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjsalso clearly points to its tenth version.

This raises a key question: When these third-party libraries (MathJax and Mermaid) release new versions, do users of Anqi CMS need to manually modify the script links in these templates?

By analyzing the documents provided by AnQi CMS, we can observe that the CDN links to MathJax and Mermaid in the documents are version-locked. Specifically, the link to MathJax contains@3It indicates the lock in the third largest version of MathJax. The Mermaid link includes@10This indicates that it is locked using the tenth version of Mermaid.This version locking strategy means that as long as there are minor version updates within the MathJax 3.x series and Mermaid 10.x series (for example, from 3.0.0 to 3.1.0, or from 10.0.0 to 10.1.0), CDN services will usually automatically provide the latest minor version files for these version numbers.In this case, the user does not need to manually modify the link in the template to enjoy bug fixes or minor feature improvements brought by the minor version update.

However, the situation is different when releasing major versions. If MathJax releases a new major version (such as MathJax 4), or Mermaid releases its eleventh major version (Mermaid 11), and the users want to take advantage of the functional improvements, performance optimizations, or major compatibility fixes brought by these new major versions, then they need to take proactive intervention.In this scenario, the userYou need to manually enter the template file of its security CMS (such asbase.html),and update the main version number specified in the link——For example, update the link of MathJax@3is modified to@4,or update the link of Mermaid@10is modified to@11.

In summary, for the CDN version updates of MathJax and Mermaid, AnQi CMS itself will not automatically modify the script links manually integrated by users in the template. If users want to upgrade to the latest major version of these libraries to obtain new features or resolve compatibility issues, they need to manually edit theirbase.htmlOr other template files that include these scripts, to update the main version number in the CDN link.This manual management method provides website stability while also requiring operation personnel to pay attention to the update dynamics of the third-party libraries they rely on.


Frequently Asked Questions

  • Why does Anqi CMS not automatically update these MathJax and Mermaid CDN links?Answer: The template design of Anqi CMS allows users to highly customize their websites.To ensure the stability of the website and avoid compatibility issues that may arise due to major version updates of external libraries, Anqi CMS will not automatically modify these third-party script links manually integrated into template files by users.This practice gives control to the user so that they can decide whether to upgrade the version after sufficient testing and evaluation.

  • Ask: Do I need to manually modify the link if I only want small version updates for MathJax or Mermaid (such as bug fixes)?Answer: Usually not needed. The version number in CDN links is usually locked to the main version of the library (for example, MathJax@3or Mermaid@10This means that minor version updates within the same major version series (such as from 3.0.1 to 3.0.2, or 10.1.0 to 10.2.0) will be automatically provided by the CDN service with the latest files, without the need for you to manually modify the links in the template.Only when you want to upgrade to a new major version of these libraries, do you need to manually update the version number in the link.

  • Ask: If MathJax or Mermaid releases a new version, how can I determine whether I need to update my Anqi CMS website?Answer: You should pay attention to the official release channels of MathJax and Mermaid to learn about the specific features, performance improvements, security fixes, or API changes brought by new versions.If these updates have a significant impact on your website functionality, user experience, or resolve the issues you are currently facing, then it is worth considering manually updating the CDN link.Before updating, it is strongly recommended that you validate in the test environment to ensure compatibility with your existing content and templates, and to avoid potential issues affecting the production environment.

Related articles

How to implement code highlighting in Markdown in AnQiCMS?

In Anqi CMS, implementing Markdown syntax highlighting for code can greatly enhance the readability and professionalism of technical articles.As an experienced website operator, I will introduce how to enable and configure this feature in Anqi CMS. ### Enable Markdown Editor AnQi CMS supports Markdown editor, which is the basis for code highlighting.Firstly, make sure Markdown is enabled as the content editing mode in the background.

2025-11-06

What is the specific function of the `startOnLoad` parameter in `mermaid.initialize({ startOnLoad: true })`?

As an experienced senior in the operation of Anqing CMS, I know that every technical detail contains the value of improving user experience and content presentation efficiency.Regarding the `mermaid.initialize({ startOnLoad: true })` parameter, it plays a crucial role in AnQiCMS content management, especially in scenarios that support Markdown content display.

2025-11-06

How to adjust the font, size, or color of MathJax rendered mathematical formulas?

As a senior security CMS website operator, I am well aware that the details of content presentation are crucial for user experience.Especially for websites that need to display mathematical formulas, ensuring the clarity, aesthetics, and unity of the website's overall style is an indispensable aspect of operation.AnQi CMS has integrated Markdown editor in the new version and supports rendering mathematical formulas through MathJax, which provides us with great convenience.However, enabling MathJax is not enough; we also need to further adjust its style to meet specific visual requirements.###

2025-11-06

Does Anqi CMS provide detailed usage examples and frequently asked questions for `MathJax` or `Mermaid`?

As a senior CMS website operation personnel of an enterprise, I am well aware of the importance of content in attracting and retaining users.With the continuous enrichment of internet content forms, we often encounter scenarios where it is necessary to display professional content such as mathematical formulas and flowcharts on websites.This not only enhances the professionalism and authority of the content, but also significantly improves the user experience.Whether AnQi CMS provides detailed usage examples and frequently asked questions for `MathJax` or `Mermaid`, I will elaborate in detail based on the characteristics of our system and actual operational experience.AnQi CMS as an efficient

2025-11-06

How does AnQi CMS handle external links and internal links in Markdown content, will it automatically add the `nofollow` attribute?

As an experienced CMS website operation personnel of AnQi, I am well aware of the core position of content in website operation, as well as the importance of search engine optimization for content dissemination.When handling daily content publishing, the management of links, especially the handling of external links and internal links, is a key aspect that we focus on when writing and optimizing Markdown content.Our CMS provides clear and SEO-friendly features in this area.

2025-11-06

What search engines does AnQiCMS mainly support for link push function?

As an experienced website operator who deeply understands the operation of AnQi CMS, I am very clear that the key to content reaching readers lies in whether it can be effectively discovered and indexed by search engines.AnQi CMS provides a convenient link push function to help website operators accelerate the search engine inclusion process of content.This feature connects with interfaces of major search engine platforms to achieve immediate notifications for content publishing, thereby enhancing the visibility of website content.The AnQi CMS link push function mainly supports two types: direct API push and JavaScript automatic submission

2025-11-06

Why is it necessary to use AnQiCMS's search engine link push function?

As an experienced website operator familiar with AnQiCMS, I deeply understand the importance of content creation and dissemination.In the era of information explosion, even high-quality content will be greatly discounted if it is not discovered and indexed by search engines in time.The search engine link push function provided by Anqi CMS is the key to solving this core pain point.Why is it necessary to use AnQiCMS's search engine link push feature?

2025-11-06

How can link push help improve the speed of content inclusion on a website?

Hello, as a website operator who deeply understands the operation of Anqing CMS, I fully understand the importance of content inclusion speed for website SEO and user reach.The link push feature plays a crucial role in enhancing the speed of website content indexing.I will elaborate on this mechanism and its practical value in Anqi CMS in detail.How link promotion can help improve the inclusion speed of website content In today's increasingly rich digital content, search engines need to process massive amounts of web information every day.

2025-11-06