mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-23 17:29:06 +01:00
c61ebe1a51
* New translations 1.about-misskey.md (Chinese Simplified) * New translations 1.about-misskey.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations 0.index.md (Chinese Simplified) * New translations 0.index.md (Chinese Traditional) * New translations 1.warning.md (Chinese Simplified) * New translations 1.warning.md (Chinese Traditional) * New translations 2.get-started.md (Chinese Simplified) * New translations 2.get-started.md (Chinese Traditional) * New translations 3.join-server.md (Chinese Simplified) * New translations 3.join-server.md (Chinese Traditional) * New translations 4.things-to-know.md (Chinese Simplified) * New translations 4.things-to-know.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations ads.md (Chinese Simplified) * New translations ads.md (Chinese Traditional) * New translations antenna.md (Chinese Simplified) * New translations antenna.md (Chinese Traditional) * New translations charts.md (Chinese Simplified) * New translations charts.md (Chinese Traditional) * New translations clip.md (Chinese Simplified) * New translations clip.md (Chinese Traditional) * New translations custom-emoji.md (Chinese Simplified) * New translations custom-emoji.md (Chinese Traditional) * New translations deck.md (French) * New translations deck.md (Italian) * New translations deck.md (Korean) * New translations deck.md (Polish) * New translations deck.md (Chinese Simplified) * New translations deck.md (Chinese Traditional) * New translations deck.md (English) * New translations drive.md (Chinese Simplified) * New translations drive.md (Chinese Traditional) * New translations favorite.md (Chinese Simplified) * New translations favorite.md (Chinese Traditional) * New translations follow.md (Chinese Simplified) * New translations follow.md (Chinese Traditional) * New translations hashtag.md (Chinese Simplified) * New translations hashtag.md (Chinese Traditional) * New translations mention.md (Chinese Simplified) * New translations mention.md (Chinese Traditional) * New translations mfm.md (Chinese Simplified) * New translations mfm.md (Chinese Traditional) * New translations mute-and-block.md (Chinese Simplified) * New translations mute-and-block.md (Chinese Traditional) * New translations pages.md (Chinese Simplified) * New translations pages.md (Chinese Traditional) * New translations plugin.md (Chinese Simplified) * New translations plugin.md (Chinese Traditional) * New translations poll.md (Chinese Simplified) * New translations poll.md (Chinese Traditional) * New translations reaction.md (Chinese Simplified) * New translations reaction.md (Chinese Traditional) * New translations share-form.md (Chinese Simplified) * New translations share-form.md (Chinese Traditional) * New translations silence.md (Chinese Simplified) * New translations silence.md (Chinese Traditional) * New translations theme.md (Chinese Simplified) * New translations theme.md (Chinese Traditional) * New translations thread-mute.md (Chinese Simplified) * New translations thread-mute.md (Chinese Traditional) * New translations timeline.md (Chinese Simplified) * New translations timeline.md (Chinese Traditional) * New translations webhook.md (French) * New translations webhook.md (Italian) * New translations webhook.md (Korean) * New translations webhook.md (Polish) * New translations webhook.md (Chinese Simplified) * New translations webhook.md (Chinese Traditional) * New translations webhook.md (English) * New translations widgets.md (Chinese Simplified) * New translations widgets.md (Chinese Traditional) * New translations word-mute.md (French) * New translations word-mute.md (Italian) * New translations word-mute.md (Korean) * New translations word-mute.md (Polish) * New translations word-mute.md (Chinese Simplified) * New translations word-mute.md (Chinese Traditional) * New translations word-mute.md (English) * New translations 1.troubleshooting.md (Chinese Simplified) * New translations 1.troubleshooting.md (Chinese Traditional) * New translations apps.md (Chinese Simplified) * New translations apps.md (Chinese Traditional) * New translations donate.md (French) * New translations donate.md (Italian) * New translations donate.md (Korean) * New translations donate.md (Polish) * New translations donate.md (Chinese Simplified) * New translations donate.md (Chinese Traditional) * New translations donate.md (English) * New translations faq.md (Chinese Simplified) * New translations faq.md (Chinese Traditional) * New translations glossary.md (Chinese Simplified) * New translations glossary.md (Chinese Traditional) * New translations misskey-hub.md (Chinese Simplified) * New translations misskey-hub.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations announcement.md (Chinese Simplified) * New translations announcement.md (Chinese Traditional) * New translations ftt.md (Chinese Simplified) * New translations ftt.md (Chinese Traditional) * New translations role.md (French) * New translations role.md (Italian) * New translations role.md (Korean) * New translations role.md (Polish) * New translations role.md (Chinese Simplified) * New translations role.md (Chinese Traditional) * New translations role.md (English) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations bash.md (French) * New translations bash.md (Italian) * New translations bash.md (Korean) * New translations bash.md (Polish) * New translations bash.md (Chinese Simplified) * New translations bash.md (Chinese Traditional) * New translations bash.md (English) * New translations docker.md (French) * New translations docker.md (Italian) * New translations docker.md (Korean) * New translations docker.md (Polish) * New translations docker.md (Chinese Simplified) * New translations docker.md (Chinese Traditional) * New translations docker.md (English) * New translations kubernetes.md (French) * New translations kubernetes.md (Italian) * New translations kubernetes.md (Korean) * New translations kubernetes.md (Polish) * New translations kubernetes.md (Chinese Simplified) * New translations kubernetes.md (Chinese Traditional) * New translations kubernetes.md (English) * New translations manual.md (Chinese Simplified) * New translations manual.md (Chinese Traditional) * New translations ubuntu-manual.md (Chinese Simplified) * New translations ubuntu-manual.md (Chinese Traditional) * New translations cdn.md (Chinese Simplified) * New translations cdn.md (Chinese Traditional) * New translations nginx.md (Chinese Simplified) * New translations nginx.md (Chinese Traditional) * New translations push-docker-hub.md (French) * New translations push-docker-hub.md (Italian) * New translations push-docker-hub.md (Korean) * New translations push-docker-hub.md (Polish) * New translations push-docker-hub.md (Chinese Simplified) * New translations push-docker-hub.md (Chinese Traditional) * New translations push-docker-hub.md (English) * New translations scale-out.md (Chinese Simplified) * New translations scale-out.md (Chinese Traditional) * New translations troubleshooting.md (Chinese Simplified) * New translations troubleshooting.md (Chinese Traditional) * New translations disable-timelines.md (Chinese Simplified) * New translations disable-timelines.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations libraries.md (Chinese Simplified) * New translations libraries.md (Chinese Traditional) * New translations permission.md (Chinese Simplified) * New translations permission.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations global-timeline.md (French) * New translations global-timeline.md (Italian) * New translations global-timeline.md (Korean) * New translations global-timeline.md (Polish) * New translations global-timeline.md (Chinese Simplified) * New translations global-timeline.md (Chinese Traditional) * New translations global-timeline.md (English) * New translations home-timeline.md (French) * New translations home-timeline.md (Italian) * New translations home-timeline.md (Korean) * New translations home-timeline.md (Polish) * New translations home-timeline.md (Chinese Simplified) * New translations home-timeline.md (Chinese Traditional) * New translations home-timeline.md (English) * New translations hybrid-timeline.md (French) * New translations hybrid-timeline.md (Italian) * New translations hybrid-timeline.md (Korean) * New translations hybrid-timeline.md (Polish) * New translations hybrid-timeline.md (Chinese Simplified) * New translations hybrid-timeline.md (Chinese Traditional) * New translations hybrid-timeline.md (English) * New translations index.md (Chinese Simplified) * New translations index.md (Chinese Traditional) * New translations local-timeline.md (French) * New translations local-timeline.md (Italian) * New translations local-timeline.md (Korean) * New translations local-timeline.md (Polish) * New translations local-timeline.md (Chinese Simplified) * New translations local-timeline.md (Chinese Traditional) * New translations local-timeline.md (English) * New translations main.md (French) * New translations main.md (Italian) * New translations main.md (Korean) * New translations main.md (Polish) * New translations main.md (Chinese Simplified) * New translations main.md (Chinese Traditional) * New translations main.md (English) * New translations note-capture-events.md (French) * New translations note-capture-events.md (Italian) * New translations note-capture-events.md (Korean) * New translations note-capture-events.md (Polish) * New translations note-capture-events.md (Chinese Simplified) * New translations note-capture-events.md (Chinese Traditional) * New translations note-capture-events.md (English) * New translations token.md (Chinese Simplified) * New translations token.md (Chinese Traditional) * New translations 1.index.md (Chinese Simplified) * New translations 1.index.md (Chinese Traditional) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Traditional) * New translations plugin-api-reference.md (Chinese Simplified) * New translations plugin-api-reference.md (Chinese Traditional) * New translations publish-on-your-website.md (Chinese Simplified) * New translations publish-on-your-website.md (Chinese Traditional) * New translations 5.releases.md (Chinese Simplified) * New translations 5.releases.md (Chinese Traditional)
359 lines
7.8 KiB
Markdown
359 lines
7.8 KiB
Markdown
---
|
|
description: MFMは、Misskeyの様々な場所で使用できる専用のマークアップ言語です。
|
|
---
|
|
|
|
# MFM
|
|
|
|
MFMは、Markup language For Misskeyの略で、Misskeyの様々な場所で使用できる専用のマークアップ言語です。
|
|
|
|
:::tip
|
|
一部の構文はMarkdownやHTMLと互換性があります。
|
|
:::
|
|
|
|
## MFMが使用可能な場所の例
|
|
|
|
- ノート本文
|
|
- CW注釈
|
|
- ユーザーの名前
|
|
- ユーザーの自己紹介
|
|
|
|
## 構文
|
|
|
|
### メンション
|
|
|
|
アットマーク + ユーザー名で、特定のユーザーを示すことができます。
|
|
:::tip
|
|
メンションについての詳細は[こちら](./mention.md)を参照してください。
|
|
:::
|
|
|
|
```
|
|
@ai
|
|
```
|
|
|
|
<MfmPreview text="@ai"></MfmPreview>
|
|
|
|
```
|
|
@repo@p1.a9z.dev
|
|
```
|
|
|
|
<MfmPreview text="@repo@p1.a9z.dev"></MfmPreview>
|
|
|
|
### ハッシュタグ
|
|
|
|
ナンバーサイン + タグで、ハッシュタグを示すことができます。
|
|
:::tip
|
|
ハッシュタグについての詳細は[こちら](./hashtag.md)を参照してください。
|
|
:::
|
|
|
|
```
|
|
#misskey
|
|
```
|
|
|
|
<MfmPreview text="#misskey"></MfmPreview>
|
|
|
|
### URL
|
|
|
|
URLを示すことができます。
|
|
|
|
```
|
|
https://example.com
|
|
```
|
|
|
|
<MfmPreview text="https://example.com"></MfmPreview>
|
|
|
|
### リンク
|
|
|
|
文章の特定の範囲を、URLに紐づけることができます。
|
|
|
|
```
|
|
[example link](https://example.com)
|
|
```
|
|
|
|
:::tip
|
|
リンクテキストの前に`?`をつけると、リンクプレビューを非表示にすることができます。
|
|
|
|
```
|
|
?[example link](https://example.com)
|
|
```
|
|
|
|
:::
|
|
|
|
<MfmPreview text="[example link](https://example.com)"></MfmPreview>
|
|
|
|
### カスタム絵文字
|
|
|
|
コロンでカスタム絵文字名を囲むと、カスタム絵文字を表示させることができます。
|
|
:::tip
|
|
カスタム絵文字についての詳細は[こちら](./custom-emoji.md)を参照してください。
|
|
:::
|
|
|
|
```
|
|
:misskey:
|
|
```
|
|
|
|
<MfmPreview text=":misskey:"></MfmPreview>
|
|
|
|
### 太字
|
|
|
|
文字を太く表示して強調することができます。
|
|
|
|
```
|
|
**太字**
|
|
```
|
|
|
|
<MfmPreview text="**太字**"></MfmPreview>
|
|
|
|
### 目立たなくする
|
|
|
|
内容を小さく・薄く表示させることができます。
|
|
|
|
```
|
|
<small>MisskeyでFediverseの世界が広がります</small>
|
|
```
|
|
|
|
<MfmPreview text="<small>MisskeyでFediverseの世界が広がります</small>"></MfmPreview>
|
|
|
|
### 引用
|
|
|
|
内容が引用であることを示すことができます。
|
|
|
|
```
|
|
> MisskeyでFediverseの世界が広がります
|
|
```
|
|
|
|
<MfmPreview text="> MisskeyでFediverseの世界が広がります"></MfmPreview>
|
|
|
|
### 中央寄せ
|
|
|
|
内容を中央寄せで表示させることができます。
|
|
|
|
```
|
|
<center>MisskeyでFediverseの世界が広がります</center>
|
|
```
|
|
|
|
<MfmPreview text="<center>MisskeyでFediverseの世界が広がります</center>"></MfmPreview>
|
|
|
|
### コード(インライン)
|
|
|
|
プログラムなどのコードをインラインでシンタックスハイライトします。
|
|
|
|
```
|
|
`<: "Hello, world!"`
|
|
```
|
|
|
|
### コード(ブロック)
|
|
|
|
複数行のプログラムなどのコードをブロックでシンタックスハイライトします。
|
|
|
|
```
|
|
~ (#i, 100) {
|
|
<: ? ((i % 15) = 0) "FizzBuzz"
|
|
.? ((i % 3) = 0) "Fizz"
|
|
.? ((i % 5) = 0) "Buzz"
|
|
. i
|
|
}
|
|
```
|
|
|
|
### 反転
|
|
|
|
内容を上下または左右に反転させます。
|
|
|
|
```
|
|
$[flip MisskeyでFediverseの世界が広がります]
|
|
$[flip.v MisskeyでFediverseの世界が広がります]
|
|
$[flip.h,v MisskeyでFediverseの世界が広がります]
|
|
```
|
|
|
|
<MfmPreview text="$[flip MisskeyでFediverseの世界が広がります]
|
|
$[flip.v MisskeyでFediverseの世界が広がります]
|
|
$[flip.h,v MisskeyでFediverseの世界が広がります]"></MfmPreview>
|
|
|
|
### フォント
|
|
|
|
内容のフォントを指定することができます。
|
|
|
|
```
|
|
$[font.serif MisskeyでFediverseの世界が広がります]
|
|
$[font.monospace MisskeyでFediverseの世界が広がります]
|
|
$[font.cursive MisskeyでFediverseの世界が広がります]
|
|
$[font.fantasy MisskeyでFediverseの世界が広がります]
|
|
```
|
|
|
|
<MfmPreview text="$[font.serif MisskeyでFediverseの世界が広がります]
|
|
$[font.monospace MisskeyでFediverseの世界が広がります]
|
|
$[font.cursive MisskeyでFediverseの世界が広がります]
|
|
$[font.fantasy MisskeyでFediverseの世界が広がります]"></MfmPreview>
|
|
|
|
### ぼかし
|
|
|
|
内容をぼかすことができます。ポインターを上に乗せるとはっきり見えるようになります。
|
|
|
|
```
|
|
$[blur MisskeyでFediverseの世界が広がります]
|
|
```
|
|
|
|
<MfmPreview text="$[blur MisskeyでFediverseの世界が広がります]"></MfmPreview>
|
|
|
|
### 検索
|
|
|
|
検索ボックスを表示できます。
|
|
|
|
```
|
|
misskey 検索
|
|
```
|
|
|
|
<MfmPreview text="misskey 検索"></MfmPreview>
|
|
|
|
### 文字色・背景色
|
|
|
|
文字色と背景色を変更することができます。
|
|
|
|
3,4,6桁のカラーコードで色を表現します。
|
|
|
|
```
|
|
$[fg.color=f00 赤字]
|
|
$[bg.color=ff0 黄背景]
|
|
```
|
|
|
|
<MfmPreview text="$[fg.color=f00 赤字]
|
|
$[bg.color=ff0 黄背景]"></MfmPreview>
|
|
|
|
### 角度変更
|
|
|
|
指定した角度で回転させます。
|
|
|
|
```
|
|
$[rotate.deg=30 misskey]
|
|
```
|
|
|
|
<MfmPreview text="$[rotate.deg=30 misskey]"></MfmPreview>
|
|
|
|
### 位置変更
|
|
|
|
位置をずらすことができます。
|
|
|
|
```
|
|
😏$[position.x=0.8,y=0.5 🍮]😀
|
|
```
|
|
|
|
<MfmPreview text="😏$[position.x=0.8,y=0.5 🍮]😀"></MfmPreview>
|
|
|
|
### 拡大
|
|
|
|
文字を引き延ばして表示します。
|
|
|
|
```
|
|
$[scale.x=4,y=2 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[scale.x=4,y=2 🍮]"></MfmPreview>
|
|
|
|
```
|
|
$[x2 x2]
|
|
$[x3 x3]
|
|
$[x4 x4]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 x2]
|
|
$[x3 x3]
|
|
$[x4 x4]"></MfmPreview>
|
|
|
|
### アニメーション(びよんびよん)
|
|
|
|
```
|
|
$[jelly 🍮] $[jelly.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[jelly 🍮] $[jelly.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### アニメーション(じゃーん)
|
|
|
|
```
|
|
$[tada 🍮] $[tada.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[tada 🍮] $[tada.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### アニメーション(ジャンプ)
|
|
|
|
```
|
|
$[jump 🍮] $[jump.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[jump 🍮] $[jump.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### アニメーション(バウンド)
|
|
|
|
```
|
|
$[bounce 🍮] $[bounce.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[bounce 🍮] $[bounce.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### アニメーション(回転)
|
|
|
|
```
|
|
$[spin 🍮] $[spin.left 🍮] $[spin.alternate 🍮]
|
|
$[spin.x 🍮] $[spin.x,left 🍮] $[spin.x,alternate 🍮]
|
|
$[spin.y 🍮] $[spin.y,left 🍮] $[spin.y,alternate 🍮]
|
|
|
|
$[spin.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[spin 🍮] $[spin.left 🍮] $[spin.alternate 🍮]
|
|
$[spin.x 🍮] $[spin.x,left 🍮] $[spin.x,alternate 🍮]
|
|
$[spin.y 🍮] $[spin.y,left 🍮] $[spin.y,alternate 🍮]
|
|
$[spin.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### アニメーション(ぶるぶる)
|
|
|
|
```
|
|
$[shake 🍮] $[shake.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[shake 🍮] $[shake.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### アニメーション(ブレ)
|
|
|
|
```
|
|
$[twitch 🍮] $[twitch.speed=5s 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[twitch 🍮] $[twitch.speed=5s 🍮]]"></MfmPreview>
|
|
|
|
### レインボー
|
|
|
|
```
|
|
$[rainbow 🍮] $[rainbow.speed=5s 🍮]
|
|
$[rainbow 色なし文字]
|
|
$[rainbow $[fg.color=f0f 色付き文字]]
|
|
```
|
|
|
|
<MfmPreview text="$[rainbow 🍮] $[rainbow.speed=5s 🍮]
|
|
$[rainbow 色なし文字]
|
|
$[rainbow $[fg.color=f0f 色付き文字]]"></MfmPreview>
|
|
|
|
### キラキラ
|
|
|
|
```
|
|
$[sparkle 🍮]
|
|
```
|
|
|
|
<MfmPreview text="$[x2 $[sparkle 🍮]]"></MfmPreview>
|
|
|
|
### プレーン
|
|
|
|
内側の構文を全て無効にします。
|
|
|
|
```
|
|
<plain>**bold** @mention #hashtag `code` $[x2 🍮]</plain>
|
|
```
|
|
|
|
<MfmPreview text="<plain>**bold** @mention #hashtag `code` $[x2 🍮]</plain>"></MfmPreview>
|
|
|
|
## 開発者向け情報
|
|
|
|
MFMのパーサー実装はライブラリとして公開されており、簡単にクライアントにMFMを組み込むことが可能です。
|
|
|
|
- [misskey-dev/mfm.js](https://github.com/misskey-dev/mfm.js) - JavaScriptパーサー実装
|