Giter Site home page Giter Site logo

Comments (21)

syuilo avatar syuilo commented on August 28, 2024 1

やるか

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024 1

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

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

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

前者で良さそう

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

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

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024 1

基本構成はこんな感じで

<plain>plain
text</plain>

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

ありそう

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024 1

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

abc
<plain>
plain
text
</plain>
123

abc
plain
text
123

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

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024 1

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

そうね

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

タイトル紛らわしかった

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024 1

plainParserでは不要そう

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024

そうすると

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

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

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024

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

from mfm.js.

syuilo avatar syuilo commented on August 28, 2024

いくか

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024

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

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024

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

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024

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

from mfm.js.

marihachi avatar marihachi commented on August 28, 2024

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

from mfm.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.