测试简书的Markdown支持

本文探讨了简书与博客园在Markdown支持方面的差异,强调了简书在Markdown功能、实时预览及写博环境上的优势,并提出将简书作为Markdown编辑首选。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

之前写东西,做笔记喜欢用纯文本,用Tab来indent,效果不好;各种记事本对Tab显示的方式还不一样。用空格,则太费事。我想,还是等宽字体好,看着不自然,但是舒服,格式上也好控制。直到博客园支持Markdown,我才留意到这东西,以前也在网上查到过,但是当你自己没准备好的时候,哪怕是好的东西你也未必理解认同,所以我们总是突然发现一样特别牛逼的东西,兴奋的要跟人分享,其实以前见过,只是那是的你还对此不以为然。

又废话了,我只是想说,Aaron Swartz自杀的时候,我就看到过这东西,一年之后我才开始了解,不是“相见恨晚”,是那时"Too young, too naive",痛心疾首。。。

但最近试着用博客园的Markdown编辑器写博客,效果不太好,有点摸不着头脑。巧的是,在看阳志平的博客,偶然知道了简书


去看看同样的Markdown代码的简书效果

去看看同样的Markdown代码的简书效果

http://jianshu.io/p/6827f850f723

这里是同样的Markdown代码在博客园的渲染:


# Start Testing #

URL autolinking(Yes)

http://www.example.com


Strike Through(Yes)

I'm Batman
I lied...


Fenced code blocks(Yes)

Here's an example:

function test() {
  console.log("notice the blank line before this function?");
}

Syntax highlighting(Not Good)

Here's another example, ruby code:

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

But it seams not work


Tables(Yes)

First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell

Table 1. test plain table

First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell

Table 2. test aesthetic, output the same, but the source code is better looking

NameDescription
HelpDisplay the help window.
CloseCloses a window

Table 3. test we don't need to indent well in our source markdown code

NameDescription
HelpDisplay the help window.
BoldItalic1, Italic2

Table 4. test inline Markdown such as links, bold, italics, or strikethrough

Left-AlignedCenter AlignedRight Aligned
col 3 issome wordy text$1600
col 2 iscentered$12
zebra stripesare neat$1

Table 5. test alignment


Testing Result: Good!!!

我的话:

简书的GFM/Markdown支持确实不错,
而且支持一边编辑一边预览(Preview Mode)
这点做的比博客园确实要好,赞一个

计划以后博客在这里编辑,然后把markdown源码拷贝到博客园,
再在博客园博客中加上简书链接,毕竟
【简书】有更好的Markdown支持以及写博环境
【博客园】则有更大的交流圈子

转载于:https://www.cnblogs.com/gnat-tang/p/3538805.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值