asciidoc 编写html,asciidoc.html.markdown

---

language: asciidoc

contributors:

- ["Ryan Mavilia", "http://unoriginality.rocks/"]

- ["Abel Salgado Romero", "https://twitter.com/abelsromero"]

filename: asciidoc.md

---

AsciiDoc is a markup language similar to Markdown and it can be used for anything from books to blogs. Created in 2002 by Stuart Rackham the language is simple but it allows for a great amount of customization.

Document Header

Headers are optional and can't contain blank lines. It must be offset from content by at least one blank line.

Title Only

```

= Document Title

First sentence of document.

```

Title and Author

```

= Document Title

First Last

Start of this document.

```

Multiple Authors

```

= Document Title

John Doe ; Jane Doe; Black Beard

Start of a doc with multiple authors.

```

Revision Line (requires an author line)

```

= Doc Title V1

Potato Man

v1.0, 2016-01-13

This article about chips is going to be fun.

```

Paragraphs

```

You don't need anything special for paragraphs.

Add a blank line between paragraphs to separate them.

To create a line blank add a +

and you will receive a line break!

```

Formatting Text

```

_underscore creates italics_

*asterisks for bold*

*_combine for extra fun_*

`use ticks to signify monospace`

`*bolded monospace*`

```

Section Titles

```

= Level 0 (may only be used in document's header)

== Level 1

=== Level 2

==== Level 3

===== Level 4

```

Lists

To create a bulleted list use asterisks.

```

* foo

* bar

* baz

```

To create a numbered list use periods.

```

. item 1

. item 2

. item 3

```

You can nest lists by adding extra asterisks or periods up to five times.

```

* foo 1

** foo 2

*** foo 3

**** foo 4

***** foo 5

. foo 1

.. foo 2

... foo 3

.... foo 4

..... foo 5

```

## Further Reading

There are two tools to process AsciiDoc documents:

1. [AsciiDoc](http://asciidoc.org/): original Python implementation available in the main Linux distributions. Stable and currently in maintenance mode.

2. [Asciidoctor](http://asciidoctor.org/): alternative Ruby implementation, usable also from Java and JavaScript. Under active development, it aims to extend the AsciiDoc syntax with new features and output formats.

Following links are related to `Asciidoctor` implementation:

* [Markdown - AsciiDoc syntax comparison](http://asciidoctor.org/docs/user-manual/#comparison-by-example): side-by-side comparison of common Markdown and AsciiDoc elements.

* [Getting started](http://asciidoctor.org/docs/#get-started-with-asciidoctor): installation and quick start guides to render simple documents.

* [Asciidoctor User Manual](http://asciidoctor.org/docs/user-manual/): complete single-document manual with syntax reference, examples, rendering tools, amongst others.

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值