This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #14 prepare 0.11.0, move to new snazzy docs
- Loading branch information
Showing
30 changed files
with
1,310 additions
and
1,293 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use strict"; | ||
|
||
const marked = require("marked"); | ||
const loaderUtils = require("loader-utils"); | ||
|
||
module.exports = function (markdown) { | ||
// merge params and default config | ||
const options = loaderUtils.parseQuery(this.query); | ||
|
||
this.cacheable(); | ||
|
||
marked.setOptions(options); | ||
|
||
const output = JSON.stringify(marked(markdown)) | ||
return `module.exports = ${output}`; | ||
}; | ||
|
||
module.exports.seperable = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "marky-loader", | ||
"version": "0.5.0", | ||
"description": "configuration-less markdown loader for webpack", | ||
"main": "index.js", | ||
"author": "Gregory Beaver", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
export default function Viewer({ text }) { | ||
const danger = { __html: text } | ||
return ( | ||
<div className="markdown-viewer"> | ||
<div dangerouslySetInnerHTML={danger} /> | ||
</div> | ||
) | ||
} | ||
|
||
Viewer.propTypes = { | ||
text: PropTypes.string.isRequired | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Toggle from 'ion-router/Toggle' | ||
|
||
export default Toggle(state => state.examples.example) | ||
export default Toggle(state => state.examples.example, undefined, {}, false, 'mainStore') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import RouteToggle from 'ion-router/RouteToggle' | ||
|
||
export default RouteToggle('examples') | ||
export default RouteToggle('examples', null, undefined, {}, false, 'mainStore') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2623,9 +2623,8 @@ invert-kv@^1.0.0: | |
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" | ||
|
||
ion-router@^0.10.3: | ||
version "0.10.3" | ||
resolved "https://registry.yarnpkg.com/ion-router/-/ion-router-0.10.3.tgz#50bc8502d8dcac3e92f1a25f8089ae3ffb500ad6" | ||
"ion-router@file:..": | ||
version "0.11.0" | ||
dependencies: | ||
history "^4.5.1" | ||
invariant "^2.2.2" | ||
|
@@ -3220,7 +3219,7 @@ load-json-file@^1.0.0: | |
pinkie-promise "^2.0.0" | ||
strip-bom "^2.0.0" | ||
|
||
[email protected], loader-utils@^0.2.11, loader-utils@^0.2.3, loader-utils@^0.2.7, loader-utils@~0.2.2, loader-utils@~0.2.5: | ||
[email protected]: | ||
version "0.2.14" | ||
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.14.tgz#3edab2a123ebb196a1c9d6dd3e83384958843e6f" | ||
dependencies: | ||
|
@@ -3229,7 +3228,7 @@ [email protected], loader-utils@^0.2.11, loader-utils@^0.2.3, loader-utils@^0. | |
json5 "^0.5.0" | ||
object-assign "^4.0.1" | ||
|
||
[email protected], loader-utils@^0.2.16: | ||
[email protected], loader-utils@^0.2.11, loader-utils@^0.2.16, loader-utils@^0.2.3, loader-utils@^0.2.7, loader-utils@~0.2.2, loader-utils@~0.2.5: | ||
version "0.2.17" | ||
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" | ||
dependencies: | ||
|
@@ -3366,6 +3365,13 @@ [email protected]: | |
dependencies: | ||
tmpl "1.0.x" | ||
|
||
markdown-loader@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/markdown-loader/-/markdown-loader-2.0.0.tgz#421862d38c4224fd3615eb648017ea385b562d78" | ||
dependencies: | ||
loader-utils "^0.2.16" | ||
marked "^0.3.6" | ||
|
||
marked-terminal@^1.6.2: | ||
version "1.7.0" | ||
resolved "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-1.7.0.tgz#c8c460881c772c7604b64367007ee5f77f125904" | ||
|
@@ -3380,6 +3386,9 @@ marked@^0.3.6: | |
version "0.3.6" | ||
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7" | ||
|
||
"marky-loader@file:my-markdown-loader/": | ||
version "0.1.0" | ||
|
||
math-expression-evaluator@^1.2.14: | ||
version "1.2.17" | ||
resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.