Henry's Space

MDX 区分 inline 和 block code 的方法

Henry Hung

Henry Hung

Published 2024-12-15  •  Updated 2024-12-15  •  1.5 min read

⚠️ Table

NameTypeDefaultDescription
TextbooleanTextText
Textstring | functionText
test
Text

Checklist

  • a task list item
  • list syntax required
  • normal formatting, @mentions, #1234 refs
  • incomplete
  • completed

Features

  • 📼 text - description
  • 💪 Accessible - description
  • 🔧 Customizable - description

Code

html
Copy Code
<video id="player" playsinline controls data-poster="/path/to/poster.jpg">
  <source src="/path/to/video.mp4" type="video/mp4" />
  <source src="/path/to/video.webm" type="video/webm" />
</video>

jQuery

Anchor

link with parentheses()

Blockquotes

To create a blockquote, add a > in front of a paragraph.

Dorothy followed her through many of the beautiful rooms in her castle.

yaml
Copy Code
    ...
    socket_address:
        address: docker.for.mac.localhost

Note:

a) ERROR: npm update check failed.

Solution:

sh
Copy Code
$ sudo chown -R $USER:$(id -gn $USER) /Users/{username}/.config

b) ERROR: Node sass version 6.x.x is not compatible with ^ 4.x.x.

Solution:

sh
Copy Code
$ npm install node-sass@4.14.1

c) If you upgrade the version of Node, please execute the following code:

sh
Copy Code
$ sudo npm install
$ sudo npm rebuild node-sass

[!NOTE] If you intend to use Feather with a CDN, you can skip this installation step.

[!WARNING] If you intend to use Feather with a CDN, you can skip this installation step.

Toggle

Click me

Heading

  1. Foo
  2. Bar
  • Baz
  • Qux

Some Javascript

js
Copy Code
function logSomething(something) {
console.log('Something', something);
}

Image

Image of Gist

Image of Gist