-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[译] GitHub 风格的 Markdown 语法 #13
Comments
有一点比较困扰的是,我不知道怎样把 ``` 标记为代码。连输 5 个 ` 并不会得到期望的结果。 |
``` 的行内代码大概只能让解析器添加考虑这种特殊情况。Fenced code blocks 我的翻译是围栏式代码块,对应空格式(缩进式)代码块。 |
@yanxyz 谢谢,我原先也想直译的,但似乎没见过类似的称呼,感觉不够直观,所以加工了一下。如果这已经是程序语言的常见术语,或者是一个成熟的译法,我会改过来。很高兴有人对我的翻译提意见 😄 |
@cssmagic 只是我个人的意见。我翻译过php markdown extra,觉得Fenced code blocks比较形象,直译能保留这种形象感。 |
@yanxyz 谢谢,已更新。 |
不错~ |
zen mode 经常使用,不过那个按钮在有滚动条出现的时候就悲剧了,可能是偷懒不想用 JS 吧 |
@edokeh 不太确定你的意思。我试了一下好像没发现异常情况。 |
@edokeh 看起来 GitHub 开发团队用的是 Firefox…… |
我去。。果然 FF 好的,这个滚动条的出现位置是有什么 CSS 上的讲究嘛? |
@edokeh 这是FF的bug…… |
@edokeh 不同浏览器对 padding 与滚动条的布局关系的理解不一致。具体谁更标准我还没深入研究过。 |
@cssmagic FF这个是个奇葩,其他任何元素都没见过padding会把滚动条一起带跑的吧…… 规范不贴了,都找得到 |
原文版本更新到 2013-07-07,向支持团队反馈的笔误均已修正。 |
@yanxyz |
markdown 里一直都可以嵌入 HTML 啊 [挖鼻屎] 不光是 GitHub 这里…… |
@myst729 这取决于解析引擎的具体实现吧。 |
@cssmagic 哈哈,这么多 |
@cssmagic markdown 语法 http://daringfireball.net/projects/markdown/syntax#html 目前的各种实现——包括 GitHub ——基本上都是它的超集。 |
@myst729 另外,这段话是这样说的:
显然 |
Emoji 代号速查: http://www.emoji-cheat-sheet.com/ |
非常谢谢~ 英语渣的痛啊。 |
赞!虽然之前一直看原文来着 |
呃 好像才发现 我没有写一个 转字。 不是我翻译的。 On Nov 16, 2013, at 11:24, laike9m notifications@github.com wrote:
|
|
官方文档更新了,添加了删除线的写法:
|
GFM现在支持表格了。 表格 你可以使用若干列文字并于第一行下面用转折号
为了看上去美观,你也可以在两端加上额外的管道符:
注意顶部的虚线不需要准确匹配表头文本的长度:
你也可以在其中包括内联Markdown元素,比如链接,加粗,斜体或删除
最后,通过在表头行加入冒号
一个在最左边的冒号表示一个左对齐的列;一个在最右边的冒号表示一个右对齐的列;两边都有的冒号表示一个居中的列。 最后(这里不再是译文了),加上我自己的一个示范:
注意表格要另隔开一个空行。 |
@spacewander 谢谢补充。 |
表格能不能合并行或者列呢... |
@xuexb 很遗憾,不能。如果你有单元格跨行跨列的需求,说明你应该直接用 HTML 来写表格。Markdown 一般都支持直接插入 HTML 代码的。 |
@cssmagic 3q |
@paddingme |
good:thumbsup: |
哎,原来真的不能合并行列啊~ |
@cssmagic 语法更新了,Newlines 只在评论等地方有效,在文件内跟其它 markdown 一样。要不把 Writing on GitHub 也翻译一下? |
@yanxyz 谢谢提醒。我这两天把这篇翻译一下。 |
《Writing on GitHub》这篇文档已翻译,已发布到: baixing/FE-Blog#5 |
@SmartDengg Markdown 本身没有这方面的渲染功能。不过倒是可以写一个工具,把树形结构的数据转换成这种形式的文本(说不定已经有了)。 随便一提,图中的竖线所用的字符不对。图中用的是管道符( |
@SmartDengg 我个人觉得也可以用多个缩进级别的列表来替代。 |
@cssmagic 好的,谢谢你的回答,我尝试写一下。 |
@hax 恩恩,我试一下缩进,写一下。谢谢你的回答。 |
© Creative Commons BY-NC-ND 4.0 | 我要订阅 | 我要打赏
The text was updated successfully, but these errors were encountered: