Medium 中如何输入代码和列表

唐小筑
唐小筑
Aug 9, 2017 · 2 min read

Medium 不支持 Markdown,但也融合了代码和列表语法,最后也附上了其他快捷键。了解这些,在 Medium 就可以流畅写作了。

代码块``` OR cmd + option + 6

示例:今天心情还不错啊

行内代码:以 ` 开始和结束代码 OR 选中文字按 `

示例:今天心情还不错啊

原点列表* + 空格

示例:

  • 今天心情还不错啊

数字列表1. + 空格

示例:

  1. 今天心情还不错啊

附录

Available keyboard shortcuts on Medium:

  • Shortcuts help ⌘ + ? / Ctrl + ?
  • Bold ⌘ + B / Ctrl + B
  • Italic ⌘ + I / Ctrl + I
  • Link ⌘ + K / Ctrl + K
  • Header ⌘ + Alt + 1 / Ctrl + Alt + 1
  • Subheader ⌘ + Alt + 2 / Ctrl + Alt + 2
  • Quote ⌘ + Alt + 5 / Ctrl + Alt + 5 (Press once for block quote, again for a pull quote)
  • Bulleted list: * space
  • Numbered list: 1. space
  • Mention another user: type @username or @name
  • Separator ⌘ + Enter / Ctrl + Enter
  • Code block ⌘ + Alt + 6 / Ctrl + Alt + 6
  • ``` Code block
  • ` Inline code
  • Featured image ⌘ + Alt + 8 / Ctrl + Alt + 8 / Shift + F
  • Set focal point on featured image: Opt + click / Alt + click
    唐小筑

    Written by

    唐小筑

    少数派作者:https://sspai.com/user/750700/posts

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade