-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support <code> tags and blocks #7
Conversation
Looks like npf has a |
unfortunately the npf subtype |
Added requirement for code blocks. Code blocks will be converted to npf |
- adjacent code blocks should be merged into one
Looks like the conditional access operator |
deltaToHtml
: convert{ insert: "foo", attributes: { code: true } }
objects to<code>foo</code>
htmlToDelta
: convert<code>foo</code>
to{ insert: "foo", attributes: { code: true } }
deltaToHtml
: convert{ insert: "foo" }, { insert: "\n", attributes: { "code-block": true, /*...*/ } }
to<pre><code>foo</code></pre>
htmlToDelta
: convert<pre><code>foo</code></pre>
to{ insert: "foo" }, { insert: "\n", attributes: { "code-block": true, /*...*/ } }
deltaToNpf
: convert{ insert: "foo", attributes: { code: true } }
to colored textdeltaToNpf
: convert{ insert: "\n", attributes: { "code-block": true, /*...*/ } }
tochat
text subtype