Comments (21)
やるか
from mfm.js.
こんな感じかね
処理しやすいのはどっちだろう
①
{
type: 'nomfm',
props: {
text: 'no mfm\ntest'
}
}
②
{
type: 'nomfm',
children: [
{ type: 'text', props: { text: 'no mfm\ntest' } }
]
}
from mfm.js.
前者で良さそう
from mfm.js.
構文は<plain></plain>
でも良さそう
from mfm.js.
改行だけは解釈したい気もしてきたな
from mfm.js.
基本構成はこんな感じで
<plain>plain
text</plain>
<plain>
plain
text
</plain>
{
type: 'plain',
children: [
{ type: 'text', props: { text: 'plain\ntext' } }
]
}
from mfm.js.
ありそう
from mfm.js.
インラインにするとして、タグ内側の直後の改行は無視するか
abc
<plain>
plain
text
</plain>
123
は
abc
plain
text
123
って解釈される方が自然っぽいし
from mfm.js.
アサイン解除してもよい?
from mfm.js.
それすると意味がなくなるからしない
from mfm.js.
そうね
from mfm.js.
タイトル紛らわしかった
from mfm.js.
plainParserでは不要そう
from mfm.js.
とりあえずノードの仕様決めようぜ
from mfm.js.
そうすると
{
type: 'nomfm',
children: [
{ type: 'text', props: { text: 'no mfm\ntest' } }
]
}
形式じゃないと無理そうだけど
from mfm.js.
②の方でいく?
既存のテキストと同じように処理できるようになるし
plainノードはMFMテキストに戻す際のマークとしてだけ機能する感じで
from mfm.js.
いくか
from mfm.js.
これってインラインで使うことあるかな?
from mfm.js.
plainタグの中で絵文字って使えるようにする?
from mfm.js.
絵文字はMFMの構文なのかどうかって話だけど
構文って認識でOK?
from mfm.js.
plainParserでもMFM無効にできたほうが良いかな
from mfm.js.
Related Issues (20)
- リンクラベル内で改行できるようになってる HOT 1
- リンクのパースがおかしい HOT 1
- 引用を<quote></quote>でも行えると便利かも HOT 1
- 絵文字の正規表現に Unicode Property Escapes を使う HOT 6
- 絵文字マッチのパフォーマンス改善 HOT 2
- 検索構文を廃止 HOT 3
- ASTをtoStringした時に元の文字列と一致するようにする HOT 2
- カスタム絵文字の改善
- オプションでカスタム絵文字のリストを受け取れるようにする HOT 1
- Italicの中に入れ子するときの挙動
- Add support for Bulleted Lists and Numbered Lists
- plainに囲まれていない2つ以上の連続する*の後ろでurlが正しくパースされない
- italic and bold formatting messup HOT 2
- バグ?:U+FE0Fなどがそのまま絵文字としてパースされてしまう
- MFM to HTML support HOT 4
- ruby関数に対応できない HOT 1
- MFMで下線を扱えるようにして欲しい HOT 3
- メンションの定義を拡張し、RFC 7565に合わせる
- MFMjs will fail to parse users including dots in their ID HOT 3
- simpleモード(parseSimple)でも`<plain>`をパースしてほしい
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mfm.js.