Markdown快速查询

Markdown是一种简洁的文本格式方式,适用于跨设备显示。Joplin应用遵循CommonMark规范并支持通过插件扩展功能,如数学公式、任务列表、链接到其他笔记等。此外,Joplin还提供了额外的特性,如KaTeX数学表达式、Mermaid图表创建、Markdown链接创建等,使其成为强大的笔记管理工具。
摘要由CSDN通过智能技术生成

Markdown Guide | Joplin (joplinapp.org)

Markdown Guide🔗

Markdown is a simple way to format text that looks great on any device. It doesn't do anything fancy like change the font size, color, or type — just the essentials, using keyboard symbols you already know. Since it is plain text, it is an easy way to author notes and documents and when needed it can be converted to a rich text HTML document.

Joplin desktop and mobile applications can display both the Markdown text and the rendered rich text document.

Joplin follows the CommonMark specification, with additional features added via plugins.

Cheat Sheet🔗

This is a quick summary of the Markdown syntax.

 MarkdownRendered Output
Heading 1
# Heading 1

Heading 1

Heading 2
## Heading 2

Heading 2

Heading 3
### Heading 3

Heading 3

Bold
This is some **bold text**
This is some bold text
Italic
This is some *italic text*
This is some italic text
Blockquotes
> Kent.
> Where's the king?

> Gent.
> Contending with the
> fretful elements
Kent.
Where's the king?

Gent.
Contending with
the fretful elements
List
* Milk
* Eggs
* Beers
    * Desperados
    * Heineken
* Ham
  • Milk
  • Eggs
  • Beers
    • Desperados
    • Heineken
  • Ham
Ordered list
1. Introduction
2. Main topic
    1. First sub-topic
    2. Second sub-topic
3. Conclusion
  1. Introduction
  2. Main topic
    1. First sub-topic
    2. Second sub-topic
  3. Conclusion
Inline code
This is `someJavaScript()`
This is someJavaScript()
Code block
Here's some JavaScript code:

```
function hello() {
    alert('hello');
}
```

Language is normally auto-detected,
but it can also be specified:

```sql
SELECT * FROM users;
DELETE FROM sessions;
```
Here's some JavaScript code:
 
function hello() {
    alert('hello');
}

Language is normally auto-detected, but it can also be specified:
 
SELECT * FROM users;
DELETE FROM sessions;
Unformatted text
Indent with a tab or 4 spaces
for unformatted text.

    This text will not be formatted:

    Robert'); DROP TABLE students;--
Indent with a tab or 4 spaces for unformatted text.
 
This text will not be formatted:

Robert'); DROP TABLE students;--
Link
This is detected as a link:

https://joplinapp.org

And this is a link anchoring text content:

[Joplin](https://joplinapp.org)

And this is a link, with a title,
anchoring text content:

[Joplin](https://joplinapp.org "Joplin project page")
This is detected as a link:

https://joplinapp.org

And this is a link anchoring text content:

Joplin

And this is a link, with a title,
anchoring text content:

Joplin (hint: hover over the link)
Images
![Joplin icon](https://git.io/JenGk)
Here's Joplin icon
Horizontal Rule
One rule:
***
Another rule:
---
One rule:

Another rule:
TablesSee below 

Tables🔗

Tables are created using pipes | and and hyphens -. This is a Markdown table:

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

Which is rendered as:

First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell

Note that there must be at least 3 dashes separating each header cell.

Colons can be used to align columns:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |

Which is rendered as:

TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12

Joplin Extras🔗

Besides the standard Markdown syntax, Joplin supports several additional features.

Links to other notes🔗

You can create a link to a note by specifying its ID in the URL. For example:

[Link to my note](:/0b0d62d15e60409dac34f354b6e9e839)

Since getting the ID of a note is not straightforward, each app provides a way to create such link. In the desktop app, right click on a note an select "Copy Markdown link". In the mobile app, open a note and, in the top right menu, select "Copy Markdown link". You can then paste this link anywhere in another note.

Math notation🔗

Math expressions can be added using the KaTeX notation. To add an inline equation, wrap the expression in $EXPRESSION$, eg. $\sqrt{3x-1}+(1+x)^2$. To create an expression block, wrap it as follow:

$$
EXPRESSION
$$

For example:

$$
f(x) = \int_{-\infty}^\infty
	\hat f(\xi)\,e^{2 \pi i \xi x}
	\,d\xi
$$

Here is an example with the Markdown and rendered result side by side:

Chemical equations🔗

Joplin supports chemical equations via the mhchem plugin for KaTeX. This plugin is automatically enabled if you enable math notation. See the mhchem documentation for the syntax.

Diagrams🔗

You can create diagrams in Joplin using the Mermaid syntax. To add such a graph, wrap the Mermaid script inside a "```mermaid" code block like this:

```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```

This is how it would look with the Markdown on the left, and rendered graph on the right:

Mermaid support in Joplin

Note that Mermaid graphs are always rendered on a white background regardless of the current theme. This is because they can contain various colours that may not be compatible with the current theme.

Checkboxes🔗

Checkboxes can be added like so:

- [ ] Milk
- [x] Rice
- [ ] Eggs

Which would turn into:

Checkbox support in Joplin

The checkboxes can then be ticked in the mobile and desktop applications.

HTML support🔗

It is generally recommended to enter the notes as Markdown as it makes the notes easier to edit. However for cases where certain features aren't supported (such as strikethrough or to highlight text), you can also use HTML code directly. For example this would be a valid note:

This is <s>strikethrough text</s> mixed with regular **Markdown**.

Plugins🔗

Joplin supports a number of plugins that can be toggled on/off to enable/disable markdown features on top of the standard Markdown features you would expect. These plugins are listed below. Note: not all of the plugins are enabled by default, if the enable field is 'no' below, then open the option screen to enable the plugin. Plugins can be disabled in the same manner.

Note that the functionality added by these plugins is not part of the CommonMark spec so, while they will all work within Joplin, it is not guaranteed that they will work in other Markdown readers. Often this is not an issue but keep it in mind if you require compatibility with other Markdown applications.

PluginSyntaxDescriptionEnabledScreenshot
Soft breaksSee breaks markdown-it demoJoplin uses hard breaks by default, which means that a line break is rendered as <br>. Enable soft breaks for traditional markdown line-break behaviour.noView
TypographerSee typographer markdown-it demoDoes typographic replacements, (c) -> © and so onnoView
LinkifySee linkify markdown-it demoAuto-detects URLs and convert them to clickable linksyes 
Katex$$math expr$$ or $math$See aboveyesView
Fountain```fountain
Your screenplay...
```
Adds support for the Fountain markup language, a plain text markup language for screenwritingnoView
Mermaid```mermaid
mermaid syntax...
```
See plugin page for full descriptionyesView
Mark==marked==Transforms into <mark>marked</mark> (highlighted)yesView
FootnoteSimples inline footnote ^[I'm inline!]See plugin page for full descriptionyesView
TOCAny of ${toc}, [[toc]], [toc], [[_toc_]]Adds a table of contents to the location of the toc page. Based on headings and sub-headingsyesView
SubX~1~Transforms into X1noView
SupX^2^Transforms into X2noView
DeflistSee pandoc page for syntaxAdds the html <dl> tag accessible through markdownnoView
Abbr*[HTML]: Hyper Text Markup Language
The HTML specification
Allows definition of abbreviations that can be hovered over later for a full expansionnoView
Emoji:smile:Transforms into 😄. See this list for more emojisnoView
Insert++inserted++Transforms into <ins>inserted</ins> (inserted)noView
MultitableSee MultiMarkdown pageAdds more power and customization to markdown tablesnoView
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值