Stackoverflow热门问题(十七)-Markdown如何创建页面与目录?
stackoverflow热门问题目录如有翻译问题欢迎评论指出,谢谢。
Markdown如何创建页面与目录?
- resting asked:
- 最近我在尝试用markdown来做笔记。
- 我使用marked作为markdown阅读器,非常美观。
- 但是当我的笔记做的很长的时候,我发现它很难定位我想要的。
- 我知道markdown能创建表格,但它能创建目录、跳转、或者页面吗?
- 或者,有其它markdown阅读器/编辑器可以做到这些事情吗?如果有搜索功能也不错。
- 总而言之,我想要一个能像写书一样的工具来做笔记。
- Answers:
- mxro - vote: 41
- MultiMarkdown Composer可以生成目录来帮助编辑。
- 还有一些其它库能生成目录信息,见:Python Markdown TOC Extension.
- Rick - vote: 509
- 试试这个
# Table of Contents
1. [Example](#example)
2. [Example2](#example2)
3. [Third Example](#third-example)
4. [Fourth Example](#fourth-examplehttpwwwfourthexamplecom)
## Example
## Example2
## Third Example
## [Fourth Example](http://www.fourthexample.com)
- Tum - vote: 288
- 下面是一些不错的方法。能在任何markdown编辑器里面生成可点击式参考链接。
# Table of contents
1. [Introduction](#introduction)
2. [Some paragraph](#paragraph1)
1. [Sub paragraph](#subparagraph1)
3. [Another paragraph](#paragraph2)
## This is the introduction <a name="introduction"></a>
Some introduction text, formatted in heading 2 style
## Some paragraph <a name="paragraph1"></a>
The first paragraph text
### Sub paragraph <a name="subparagraph1"></a>
This is a sub paragraph, formatted in heading 3 style
## Another paragraph <a name="paragraph2"></a>
The second paragraph text
- 下面是效果。
- 注:我写这篇文章不是用markdown来写的,并且markdown语法与我现在用的富文本编辑器有冲突,所以想看效果请见原文。
- Some introduction text, formatted in heading 2 style
- The first paragraph text
- This is a sub paragraph, formatted in heading 3 style
- The second paragraph text
- This is the introduction
- Some introduction text, formatted in heading 2 style
- Some paragraph
- The first paragraph text
- Sub paragraph
- This is a sub paragraph, formatted in heading 3 style
- Another paragraph
- The second paragraph text
- mxro - vote: 41
Markdown to create pages and table of contents?
- resting asked:
- I started to use markdown to take notes.
- 最近我在尝试用markdown来做笔记。
- I use marked to view my markdown notes and its beautiful.
- 我使用marked作为markdown阅读器,非常美观。
- But as my notes get longer I find it difficult to find what I want.
- 但是当我的笔记做的很长的时候,我发现它很难定位我想要的。
- I know markdown can create tables, but is it able to create table of contents, that jumps to sections, or define page sections in markdown?
- 我知道markdown能创建表格,但它能创建目录、跳转、或者页面吗?
- Alternatively, are there markdown readers/editors that could do such things. Search would be good feature to have too.
- 或者,有其它markdown阅读器/编辑器可以做到这些事情吗?如果有搜索功能也不错。
- In short, I want to make it my awesome note taking tool and functions much like writing a book etc.
- 总而言之,我想要一个能像写书一样的工具来做笔记。
- I started to use markdown to take notes.
- Answers:
- mxro - vote: 41
- MultiMarkdown Composer does seem to generate a table of contents to assist while editing.
- MultiMarkdown Composer可以生成目录来帮助编辑。
- There might also be the one or the other library, who can generate TOCs: see Python Markdown TOC Extension.
- 还有一些其它库能生成目录信息,见:Python Markdown TOC Extension.
- MultiMarkdown Composer does seem to generate a table of contents to assist while editing.
- Rick - vote: 509
- You can give this a try.
- 试试这个
# Table of Contents
1. [Example](#example)
2. [Example2](#example2)
3. [Third Example](#third-example)
4. [Fourth Example](#fourth-examplehttpwwwfourthexamplecom)
## Example
## Example2
## Third Example
## [Fourth Example](http://www.fourthexample.com)
- You can give this a try.
- Tum - vote: 288
- Here's a useful method. Should produce clickable references in any MarkDown editor.
- 下面是一些不错的方法。能在任何markdown编辑器里面生成可点击式参考链接。
# Table of contents
1. [Introduction](#introduction)
2. [Some paragraph](#paragraph1)
1. [Sub paragraph](#subparagraph1)
3. [Another paragraph](#paragraph2)
## This is the introduction <a name="introduction"></a>
Some introduction text, formatted in heading 2 style
## Some paragraph <a name="paragraph1"></a>
The first paragraph text
### Sub paragraph <a name="subparagraph1"></a>
This is a sub paragraph, formatted in heading 3 style
## Another paragraph <a name="paragraph2"></a>
The second paragraph text
- Produces:
- 下面是效果。
- 注:我写这篇文章不是用markdown来写的,并且markdown语法与我现在用的富文本编辑器有冲突,所以想看效果请见原文。
- 下面是效果。
- Some introduction text, formatted in heading 2 style
- The first paragraph text
- This is a sub paragraph, formatted in heading 3 style
- The second paragraph text
- This is the introduction
- Some introduction text, formatted in heading 2 style
- Some paragraph
- The first paragraph text
- Sub paragraph
- This is a sub paragraph, formatted in heading 3 style
- Another paragraph
- The second paragraph text
- Here's a useful method. Should produce clickable references in any MarkDown editor.
- mxro - vote: 41
共有 0 条评论