Stackoverflow热门问题(十七)-Markdown如何创建页面与目录?

文章首发及后续更新:https://mwhls.top/2706.html
新的更新内容请到mwhls.top查看。
无图/无目录/格式错误/更多相关请到上方的文章首发页面查看。

stackoverflow热门问题目录

如有翻译问题欢迎评论指出,谢谢。

Markdown如何创建页面与目录?
  • resting asked:
    • 最近我在尝试用markdown来做笔记。
    • 我使用marked作为markdown阅读器,非常美观。
    • 但是当我的笔记做的很长的时候,我发现它很难定位我想要的。
    • 我知道markdown能创建表格,但它能创建目录、跳转、或者页面吗?
    • 或者,有其它markdown阅读器/编辑器可以做到这些事情吗?如果有搜索功能也不错。
    • 总而言之,我想要一个能像写书一样的工具来做笔记。
  • Answers:
  • Tum – vote: 288
    • 下面是一些不错的方法。能在任何markdown编辑器里面生成可点击式参考链接。
    • # Table of contents
    • 1. Introduction
    • 2. Some paragraph
    • 1. Sub paragraph
    • 3. Another paragraph
    • ## 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

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.
      • 总而言之,我想要一个能像写书一样的工具来做笔记。
  • Answers:
  • Tum – vote: 288
    • Here’s a useful method. Should produce clickable references in any MarkDown editor.
      • 下面是一些不错的方法。能在任何markdown编辑器里面生成可点击式参考链接。
    • # Table of contents
    • 1. Introduction
    • 2. Some paragraph
    • 1. Sub paragraph
    • 3. Another paragraph
    • ## 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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值