logo
努力加载中 ……

MarkDown

原创Starzkg, shentuzhigang12/19/2021, 8:14:03 AM392a minute

By installing and enableing this plugin, you can use more syntax in your Markdown files.

TIP

Don’t worry about the size of your site. If you don’t enable related features, the final code won’t include code for these features.

At the same time, VuePress itself adds some Markdown syntaxes. You can view the official documentationopen in new window.

Enable all

You can set themeconfig.mdEnhance.enableAll to enable all features of the markdown-enhanceopen in new window plugin.

module.exports = {
  themeConfig: {
    mdEnhance: {
      enableAll: true,
    },
  },
};

DANGER

Please use this option ONLY for playing or testing.

As time grows,vupress-plugin-markdown-enhance is becoming more powerful. It’s adding more syntax to Markdown parser and more code to output.

Enabling features you don’t need will increase dev and build time. (markdown-it has to check for extra syntaxs)

Also, presentation feature will add a 700KB size chunk (mostly is reveal.js) to your output.

Please use the options below and enable ONLY the feature you want to use.

New Feature

Superscript and Subscript

19th H2O

Align

I am center

I am right align

Footnote

This text has footnote[1].

Mark

You can mark important words .

Tasklist

Mermaid

flowchart TB
    c1-->a2
    subgraph one
    a1-->a2
    end
    subgraph two
    b1-->b2
    end
    subgraph three
    c1-->c2
    end
    one --> two
    three --> two
    two --> c2

Tex

rωr(yωω)=(yωω){(logy)r+i=1r(1)ir(ri+1)(logy)riωi} \frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right) = \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^i r \cdots (r-i+1) (\log y)^{r-i}} {\omega^i} \right\}

Code Demo

::: demo A normal demo

<h1>Mr.Hope</h1>
<p>Is <span id="very">very</span> handsome</p>
document.querySelector("#very").addEventListener("click", () => {
  alert("Very handsome!");
});
span {
  color: red;
}

:::

Presentation

@slidestart

Slide 1

A paragraph with some text and a linkopen in new window


Slide 2

  • Item 1
  • Item 2

Slide 3.1

const a = 1;

Slide 3.2

J(θ0,θ1)=i=0 J(\theta_0,\theta_1) = \sum_{i=0}

@slideend


  1. This is footnote content ↩︎