How to use AnQiCMS to correctly use Markdown on the web and display mathematical formulas and flowcharts

Calendar 👁️ 633

The new Anqi CMS has added a Markdown editor, which supports inserting mathematical formulas and flowcharts.

But mathematical formulas and flowcharts require third-party plugins to be displayed properly.

Below, we will introduce their usage methods.

Firstly, enable the Markdown editor in the Anq CMS background->Global Settings->Content Settings

Create a new document, insert mathematical formulas and flowcharts into the document for testing later

Apply the default Markdown style on the web:

We utilize Cloudflare's CDN resources. Add the following line to the header of the base.html file.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />

Display of mathematical formulas correctly on the web

We use the jsdelivr CDN resources. Add the following line in the header of the base.html file:

<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

Display of flow chart correctly on the web

We leverage the cdn resources of jsdelivr. Add the following content to the header of the base.html file.

    <script type="module">
        import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
        mermaid.initialize({ startOnLoad: true });
    </script>

Related articles

AnqiCMS (AnqiCMS) online demo site

Anqi CMS, an enterprise-level content management system developed using GoLang, is easy to deploy, secure, with an elegant interface, compact, and fast in execution. Websites built with Anqi CMS can prevent many security issues. The design of Anqi CMS is SEO-friendly and includes many common features for enterprise websites, which is very helpful for website optimization and enterprise management

2022-07-07

AnqiCMS Development Plan

Basic Function (Published) Blog Basic Function Post/Modify Article Create Category Article Display Image Upload Initialize Blog Page TDK Settings Admin Login/Permission Control PC and Mobile End Adaptive Matching Perfect Function (Published) Add Management Backend Automatically Extract and Set Thumbnail Sitemap Automatic Generation Robots Backend Configuration Search Engine Active Push Friend Link Backend Management Add

2022-06-07

Common Issues Summary of AnqiCMS

Here are the common problems encountered by users while using AnqiCMS, where you can find some solutions to these problems.How to install and use multiple AnqiCMS on the same server?Each AnqiCMS needs to occupy a port, the default port is 8001, if you want to install multiple AnqiCMS on the same server, then you need to allocate a different port for each project

2022-06-07

Get to Know AnqiCMS

Anqi CMS, an enterprise-level content management system developed using GoLang, is easy to deploy, secure, with an elegant interface, compact, and fast in execution. Websites built with Anqi CMS can prevent many security issues. The design of Anqi CMS is SEO-friendly and includes many common features for enterprise websites, which is very helpful for website optimization and enterprise management

2022-05-31

AnQiCMS (AnQiCMS) default mini-program usage instructions

Instructions: The source code of this mini-program supports Baidu Smart Program, WeChat Mini Program, Alipay Mini Program, Toutiao Mini Program, and so on. The configuration and installation method are illustrated with the Baidu Mini Program as an example. Download the mini-program code from github's Release https://github.com/fesiong/anqicms-app/releases and unzip it.Open the source code root directory of the mini-program, replace https://en.anqicms.com/ with your domain name

2023-12-18

The method of installing multiple AnQi CMS on the server

First, download the AnQiCMS Linux installation package from https://en.anqicms.com/download. Method one: Use the multi-site feature to install multiple AnQiCMS. AnQiCMS does not need to copy multiple copies of AnQiCMS code to install multiple sites on a single server. Please follow the operation steps below to add multiple sites.In the left menu of the Baota panel, click the Website menu, click PHP project, add a PHP site, and fill in the domain name resolved to the server during site creation

2024-05-31

Solution to AnQi CMS unable to log in to the backend

The AnQi CMS cannot log in to the admin panel, no login box is displayed, keeps spinning, solution log in to Baota---find the corresponding site---settings---configuration file---about 50-55 lines, find the following code, add: # # location ~ .*\.(js|css)??$ # { # expires 12h; # error_log /dev/null; # access_log /dev/null;#

2024-09-11