Create providers directory; Markdown provider

This commit is contained in:
Kyle Shockey
2017-05-18 17:03:58 -07:00
parent df47e0e956
commit a2eed69ee7
4 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
import Remarkable from "react-remarkable"
import React from "react"
export default ({ source }) => {
return <Remarkable
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
source={source}
></Remarkable>
}

View File

@@ -0,0 +1,6 @@
# Providers
Providers are generic bridges to third-party components. They provide two benefits:
1. ability for plugins to override third-party components, because providers are loaded through `getComponent`
2. allows us to avoid painting ourselves into a corner with a third-party component