mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-24 09:13:24 +01:00
* Add script for benchmark * Add error handling * Rename folder to perf/benchmarks * Add README * Avoid memoization between benchmark runs * Handle multiple benchmark. Add setup to benchmarks * Run benchmarks through Travis * Add command line options for JSON output * Add export to JSON, and comparison with reference * Improve serialize and fix results display * Add perf/ to .npmignore * Print error message * Create normal example for normalize * Add normalize-document wide and deep * Add split-block normal, deep and wide * Add delete-backward benchmarks * Fix too much newlines * Use microtime for better results maybe? * Print number of runs * Add minSamples options for better accuracy * Use babel-node to launch benchmarks * Use jsdom-global instead of mocha-jsdom (deprecated) * Add rendering benchmark example * Fix jsdom usage. * Use JSX because we can * Only use on('cycle') that is called even on error * Example of successive rendering benchmark * Rename README, and explain how to add a benchmark * Add C++11 to Travis to install microtime * Update Readme.md # Understanding the results * Try to fix Travis build with microtime * Travis: use before_install Instead of overwriting install * Forgot to remove mocha-jsdom import Thanks node_modules... * Add jsdom as devDependency (required as peer dependency by jsdom-global) * Add --only option to run only a specific benchmark * Print name onStart rather than at end
41 lines
823 B
YAML
41 lines
823 B
YAML
nodes:
|
|
- kind: block
|
|
type: paragraph
|
|
nodes:
|
|
- kind: text
|
|
ranges:
|
|
- text: 'This is editable '
|
|
- text: 'rich'
|
|
marks:
|
|
- type: bold
|
|
- text: ' text, '
|
|
- text: 'much'
|
|
marks:
|
|
- type: italic
|
|
- text: ' better than a '
|
|
- text: '<textarea>'
|
|
marks:
|
|
- type: code
|
|
- text: '!'
|
|
- kind: block
|
|
type: paragraph
|
|
nodes:
|
|
- kind: text
|
|
ranges:
|
|
- text: 'Since it''s rich text, you can do things like turn a selection of text '
|
|
- text: 'bold'
|
|
marks:
|
|
- type: bold
|
|
- text: ', or add a semantically rendered block quote in the middle of the page,
|
|
like this:'
|
|
- kind: block
|
|
type: block-quote
|
|
nodes:
|
|
- kind: text
|
|
text: 'A wise quote.'
|
|
- kind: block
|
|
type: paragraph
|
|
nodes:
|
|
- kind: text
|
|
text: 'Try it out for yourself!'
|