首页 > 其他分享 >Welcome to MWeb

Welcome to MWeb

时间:2022-11-04 12:02:26浏览次数:80  
标签:image Welcome syntax Content MWeb John mermaid

MWeb is a professional Markdown writing, note taking, and static blog generator app for Mac, iPad, and iPhone. Here are some special features of MWeb.

The software

  • Made with supporting native technologies in mind. It is always a perfect integration with the platform.
  • Aiming for modern UI and high performance, also being powerful, easy-to-use, and fully-featured.

Markdown

The powerful syntax

  • Use the GitHub Flavored Markdown (GFM) by default.
  • Included with the support of creating tables, TOCs, LaTeX math, fenced code blocks, task lists, footnotes, and many more.
  • Easily generate graphics with any of mermaid, Graphviz, ECharts, PlantUML, js-sequence-diagrams, and flowchart.js.

Editing assistant

  • Gracefully handle image insertion: direct copy and paste, drag and drop, and full-colored preview in the editor.
  • Specify the image size in Markdown-compatible syntax.
  • Inserting tables and LaTeX equations with ease.

Note taking

  • Store and manage all documents in a tree-like categoring library with a tagging system. Categories can be gracefully exported or turned into static websites.
  • Put quick notes.
  • Instantly search from the entire library.

Output

  • Exporting contents as various formats, including HTML, EPUB, PDF, RTF, Docx, and even image.
  • Publishing the articles to Wordpress, Metaweblog API, Wordpress.com, Evernote, Blogger, Medium, Ghost, and Tumblr.
  • Smooth support for image upload services: using Imgur, SM.MS, Qiniu, Upyun, Tencent Cloud COS, Aliyun OSS or your custom API.

External documentation

  • There is an external mode in MWeb that enables importing existing markdown files in directories. It also handles contents from Gitbook, JekyII and Hexo.

MWeb official help

Before use MWeb, we suggest that reading the MWeb official help document: https://www.mweb.im/help.html first.
If you use the Library Mode, please check out this link https://www.mweb.im/mweb-library.html first.

Help us to make MWeb better!

  1. Spread the words! Tell your friends about MWeb if you like it.
  2. Send Feedback: [email protected]
  3. Leave a review or at least a rating in the Mac App Store.

GFM syntax guide

Newlines

End a line with two or more spaces + enter.
Just typing enter to newline,please go to Settings and enable "Translate newlines to <br> tags" ( default is enable ).

Task lists

Example:

- [ ] task one not finish `- + SPACE + [ ]`
- [x] task two finished `- + SPACE + [x]`

Result:

  • task one not finish - + SPACE + [ ]
  • task two finished - + SPACE + [x]

Image size and alignment (Only in MWeb)

Setting image width, For example: ![image description-w450](pic.jpg), -w450 mean set the image width: 450.

GitHub

Multi-line code

Example:

```js
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }

}
```

Result:

function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }

}

Tables

Example:

First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column

You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe |:

Result:

First Header Second Header
Content from cell 1 Content from cell 2
Content in the first column Content in the second column

Strikethrough

Example:

 (like ~~this~~)

Result:

Any word wrapped with two tildes (like this) will appear crossed out.

LaTeX

Markdown syntax:

Block-level formula:
```math
x = \dfrac{-b \pm \sqrt{b^2-4ac}}{2a}
```

In-line formula: ``\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N``

The resut is (enable LaTeX in the settings page):

Block-level formula:

\[x = \dfrac{-b \pm \sqrt{b^2-4ac}}{2a} \]

In-line formula: \(\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N\)

Note: For compatibility with MWeb 3, \(\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N\) is also supported
And block-level syntax
\(x = \dfrac{-b \pm \sqrt{b^2-4ac}}{2a}\)
But it is recommended to use the new syntax.

MWeb drawing

mermaid

mermaid is a popular drawing gallery. It supports flowcharts, sequence diagrams and Gantt charts. Its official website is: https://mermaidjs.github.io/. The syntax of mermaid in MWeb is to declare code blocks. The language is mermaid, and the mermaid drawing grammar can be written in the code block. You can copy the following grammar to MWeb to view the result.

```mermaid
sequenceDiagram
    participant Alice
    participant Bob
    Alice->John: Hello John, how are you?
    loop Healthcheck
        John->John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail...
    John-->Alice: Great!
    John->Bob: How about you?
    Bob-->John: Jolly good!
```

The result is:

sequenceDiagram
    participant Alice
    participant Bob
    Alice->John: Hello John, how are you?
    loop Healthcheck
        John->John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail...
    John-->Alice: Great!
    John->Bob: How about you?
    Bob-->John: Jolly good!

echarts

echarts is a js drawing gallery produced by Baidu. Its website is: https://echarts.apache.org/zh/index.html. It has very powerful functions. MWeb supports some basic usages of echarts, but not too advanced. . You can copy the following syntax to MWeb to try. You can also go to https://echarts.apache.org/examples/zh/index.html to view some examples. Note that MWeb can only parse the simple option = {}, but it should It is enough to use.

```echarts
option = {
    xAxis: {
        type:'category',
        data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
    },
    yAxis: {
        type:'value'
    },
    series: [{
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type:'line'
    }]
};
```

The result is:

option = {
    xAxis: {
        type:'category',
        data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
    },
    yAxis: {
        type:'value'
    },
    series: [{
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type:'line'
    }]
};

Footnote

Example:

This is a footnote:[^1]

Result:

This is a footnote:1

Comment And Read More..

  1. footnote text detail...

标签:image,Welcome,syntax,Content,MWeb,John,mermaid
From: https://www.cnblogs.com/loaf/p/welcome-to-mweb.html

相关文章

  • 00 - welcome to cs106b
    WelcometoCS106B!CS106B是斯坦福CS核心课程的第一门课,主要训练解决复杂问题的能力,课程重点是掌握计算机中最重要的思维——递归。除此之外,还会介绍业界广泛使用的数......
  • 测试MWeb发布服务
    第一节:插入文本a:当前字符的后一个位置插入i:当前字符的前一个位置插入o:当前编辑位置下面新起一行A:在行最后位置插入I:在行最前的位置插入O:在当前编辑位置的上面新起......
  • Welcome to my blog!
    (我一直在思考如何让我的博客显得干净整洁。你知道,现在很多的博客系统都是简单地把博主的文章按时间顺序从新到旧显示在主页,尽管有置顶功能,但是整体看起来依然有些混乱(......
  • Welcome to my blog!
     :) 欢迎来到这里。望共同进步! #include<iostream>intmain(){usingnamespacestd;cout<<"Welcometomyblogs!"<<endl;cout<<"Her......
  • 测试 MWeb 发博客
    测试发博客测试一下用iOSMWeb向博客园发文章。MWeb支持博客园的MetaWeblogAPI。测试一下发布后,更改文章内容再发。第一项第二项第三项测试一下代码高亮显示......
  • CF896E Welcome home, Chtholly
    题面维护一个\(n(n\leqslant100000)\)个元素序列\(a_1,a_2,\dots,a_n\),有\(m(m\leqslant100000)\)次操作,分为如下两种。给定\(l,r,x\),将\(a_l,a_{l+1},\dots,a_r\)中......