diff --git a/examples/auto-markdown/index.js b/examples/auto-markdown/index.js index 5b338040b..4f54cc226 100644 --- a/examples/auto-markdown/index.js +++ b/examples/auto-markdown/index.js @@ -11,16 +11,15 @@ import initialState from './state.json' */ const NODES = { - 'block-quote': props =>
{props.children}, - 'bulleted-list': props =>
{props.children}
+ 'block-quote': props =>{props.children}, + 'bulleted-list': props =>
{props.children}
,
- paragraph: props => {props.children}
+ code: props =>{props.children}
}
/**
diff --git a/examples/hovering-menu/index.js b/examples/hovering-menu/index.js
index 62c560bc8..910e9ddff 100644
--- a/examples/hovering-menu/index.js
+++ b/examples/hovering-menu/index.js
@@ -5,16 +5,6 @@ import React from 'react'
import position from 'selection-position'
import initialState from './state.json'
-/**
- * Node renderers.
- *
- * @type {Object}
- */
-
-const NODES = {
- paragraph: props => {props.children}
-} - /** * Mark renderers. * @@ -99,7 +89,6 @@ class HoveringMenu extends React.Component {{props.children}
, image: (props) => { const { node, state } = props const { data } = node const isActive = state.isFocused && state.blocks.includes(node) const src = data.get('src') - return{props.children}
,
- 'heading-one': props => {props.children}
, - 'quote': props =>{props.children}, + 'bulleted-list': props =>
{props.children}
,
+ 'heading-one': props => {props.children}, 'link': (props) => { const { data } = props.node const href = data.get('href') - return {props.children} + return {props.children} } } diff --git a/examples/tables/index.js b/examples/tables/index.js index 998efdb5b..0004474f4 100644 --- a/examples/tables/index.js +++ b/examples/tables/index.js @@ -11,10 +11,9 @@ import keycode from 'keycode' */ const NODES = { - 'paragraph': props =>
{props.children}
, - 'table': props =>