AnqiCMS as an efficient and customizable content management system, is always committed to providing convenient and powerful creation tools for content operators.We know that high-quality, well-structured, and expressive content is the key to attracting and retaining users in daily content operations.For this reason, AnqiCMS continues to evolve and now fully supports Markdown editor, and can elegantly present complex mathematical formulas and intuitive flowcharts, greatly enriching the dimensions of content expression, making our website stand out in the sea of information.
AnqiCMS supports Markdown editors, marking a leap in content creation experience.Markdown makes content creators focus on the text itself rather than complex formatting details with its concise syntax.It allows us to quickly write and format articles, whether it's headings, lists, quotes, or code blocks, all can be completed in an efficient manner, greatly enhancing content production efficiency.To enable this feature, operations personnel only need to find the 'Content Settings' option in the 'Global Settings' of the AnqiCMS backend and activate the Markdown editor here.Once enabled, the content editing area will switch to Markdown mode, bringing great convenience to creation.
base.htmlThe header of the template file, introducing the CDN resources of MathJax, with the following code snippet: <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>Through simple code integration, it can enable powerful mathematical formula display capabilities for website content, meeting the needs of professional readers.
In addition to static text and formulas, dynamic and logical information often also requires a more intuitive expression, such as flowcharts.AnqiCMS now also supports integrating flowcharts in content, which is thanks to the introduction of the Mermaid library.Mermaid allows us to use simple text syntax to define complex flowcharts, sequence diagrams, and more, which are then automatically rendered into beautiful graphics on the web.This is particularly useful for explaining complex workflows, system architectures, or decision paths.base.htmlAdd Mermaid CDN script to the beginning of the file, the code example is as follows:<script type="module"> import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs'; mermaid.initialize({ startOnLoad: true }); </script>So that the Mermaid syntax flowchart written in Markdown content can be recognized and correctly rendered by the front-end page.
Through these enhanced features, AnqiCMS not only improves the efficiency and convenience of content creation, but also broadens the possibilities of content expression.The concise nature of Markdown, the professional handling of mathematical formulas, and the intuitive nature of flowcharts together build a more rich and attractive content ecosystem.As website operators, we can make use of these tools to provide readers with higher quality and more easily understandable content, effectively enhancing user experience and the professional image of the website, ultimately achieving the goal of attracting and retaining users.
Common Questions (FAQ)
Q1: Can I directly write mathematical formulas and flowcharts in the article content after enabling the Markdown editor in AnqiCMS?Yes, once the Markdown editor is enabled in the "Global Settings" -> "Content Settings" of AnqiCMS backend, you can directly use Markdown syntax to write text in document content, and embed mathematical formulas of LaTeX syntax and Mermaid syntax flowcharts. But please note that whether these formulas and flowcharts can be displayed correctly on the front-end page still depends on your website template (usuallybase.htmlFile) Correctly introduce the CDN links for the MathJax and Mermaid libraries.
Q2: If my website template has been modified, will introducing MathJax and Mermaid libraries affect the existing layout or functionality?In most cases, it is only necessary tobase.htmlFiles<head>The CDN links for MathJax and Mermaid embedded within tags will not directly conflict with the layout or functionality of the existing website.These libraries are mainly responsible for parsing and rendering content with specific syntax. If your website does not use conflicting JavaScript libraries or CSS styles, they can usually be integrated seamlessly.Suggest to conduct thorough testing after the introduction to ensure everything is normal.
Q3: Can I upload mathematical formulas or flowcharts as images to AnqiCMS?Of course, you can.Even without using MathJax or Mermaid libraries for real-time rendering, you can pre-generate mathematical formulas or flowcharts as images (such as PNG or SVG format) and then upload them as ordinary images through AnqiCMS content editor and insert them into articles.The advantages of this method are that it does not require additional client rendering, but the disadvantages are that images are not as flexible as renderable text formulas and flowcharts, and are not conducive to SEO and accessibility features.