Skip to content
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

全ての構文を無効にする構文 #101

Closed
syuilo opened this issue Nov 24, 2018 · 21 comments · Fixed by #114
Closed

全ての構文を無効にする構文 #101

syuilo opened this issue Nov 24, 2018 · 21 comments · Fixed by #114
Assignees
Labels

Comments

@syuilo
Copy link
Member

syuilo commented Nov 24, 2018

<nomfm></nomfm>

とか


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@syuilo syuilo added the 🖍MFM label Nov 24, 2018
@syuilo syuilo self-assigned this Nov 24, 2018
@syuilo syuilo transferred this issue from misskey-dev/misskey Mar 4, 2022
@Johann150 Johann150 added Feature and removed 🖍MFM labels May 5, 2022
@syuilo
Copy link
Member Author

syuilo commented Jun 4, 2022

やるか

@marihachi
Copy link
Contributor

とりあえずノードの仕様決めようぜ

@marihachi
Copy link
Contributor

marihachi commented Jun 5, 2022

こんな感じかね
処理しやすいのはどっちだろう

{
  type: 'nomfm',
  props: {
    text: 'no mfm\ntest'
  }
}

{
  type: 'nomfm',
  children: [
    { type: 'text', props: { text: 'no mfm\ntest' } }
  ]
}

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

前者で良さそう

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

構文は<plain></plain>でも良さそう

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

改行だけは解釈したい気もしてきたな

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

そうすると

{
  type: 'nomfm',
  children: [
    { type: 'text', props: { text: 'no mfm\ntest' } }
  ]
}

形式じゃないと無理そうだけど

@marihachi
Copy link
Contributor

marihachi commented Jun 5, 2022

②の方でいく?
既存のテキストと同じように処理できるようになるし
plainノードはMFMテキストに戻す際のマークとしてだけ機能する感じで

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

いくか

@marihachi
Copy link
Contributor

基本構成はこんな感じで

<plain>plain
text</plain>

<plain>
plain
text
</plain>
{
  type: 'plain',
  children: [
    { type: 'text', props: { text: 'plain\ntext' } }
  ]
}

@marihachi
Copy link
Contributor

これってインラインで使うことあるかな?

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

ありそう

@marihachi
Copy link
Contributor

marihachi commented Jun 5, 2022

インラインにするとして、タグ内側の直後の改行は無視するか

abc
<plain>
plain
text
</plain>
123

abc
plain
text
123

って解釈される方が自然っぽいし

@marihachi
Copy link
Contributor

アサイン解除してもよい?

@syuilo syuilo removed their assignment Jun 5, 2022
@marihachi
Copy link
Contributor

plainタグの中で絵文字って使えるようにする?

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

それすると意味がなくなるからしない

@marihachi
Copy link
Contributor

絵文字はMFMの構文なのかどうかって話だけど
構文って認識でOK?

@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

そうね

@syuilo syuilo changed the title 一部MFMを無効にする構文 全ての構文を無効にする構文 Jun 5, 2022
@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

タイトル紛らわしかった

@marihachi
Copy link
Contributor

plainParserでもMFM無効にできたほうが良いかな

@marihachi marihachi self-assigned this Jun 5, 2022
@syuilo
Copy link
Member Author

syuilo commented Jun 5, 2022

plainParserでは不要そう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants