File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 200200 "redux-saga" : " ^0.16.0" ,
201201 "redux-saga-debounce-effect" : " ^0.2.2" ,
202202 "remark" : " ^9.0.0" ,
203+ "remark-external-links" : " ^1.0.1" ,
203204 "remark-react" : " ^4.0.0" ,
204205 "remark-react-lowlight" : " ^0.7.0" ,
205206 "reselect" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 11import memoize from 'lodash/memoize' ;
22import remark from 'remark' ;
33import remarkReact from 'remark-react' ;
4+ import externalLinks from 'remark-external-links' ;
45import remarkLowlight from 'remark-react-lowlight' ;
56import css from 'highlight.js/lib/languages/css' ;
67import xml from 'highlight.js/lib/languages/xml' ;
@@ -17,12 +18,14 @@ const remarkWithHighlighting = memoize(() => {
1718 } ) ,
1819 } ) ;
1920
20- return remark ( ) . use ( remarkReact , {
21- sanitize : schema ,
22- remarkReactComponents : {
23- code : remarkLowlight ( { css, js, xml} ) ,
24- } ,
25- } ) ;
21+ return remark ( ) .
22+ use ( externalLinks ) .
23+ use ( remarkReact , {
24+ sanitize : schema ,
25+ remarkReactComponents : {
26+ code : remarkLowlight ( { css, js, xml} ) ,
27+ } ,
28+ } ) ;
2629} ) ;
2730
2831export function toReact ( markdown ) {
Original file line number Diff line number Diff line change @@ -2795,6 +2795,10 @@ css-select@~1.3.0-rc0:
27952795 domutils "1.5.1"
27962796 nth-check "^1.0.1"
27972797
2798+ css-selector-parser@^1.1.0 :
2799+ version "1.3.0"
2800+ resolved "https://registry.yarnpkg.com/css-selector-parser/-/css-selector-parser-1.3.0.tgz#5f1ad43e2d8eefbfdc304fcd39a521664943e3eb"
2801+
27982802css-tree@1.0.0-alpha.27 :
27992803 version "1.0.0-alpha.27"
28002804 resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.27.tgz#f211526909c7dc940843d83b9376ed98ddb8de47"
@@ -8874,6 +8878,12 @@ relateurl@0.2.x:
88748878 version "0.2.7"
88758879 resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
88768880
8881+ remark-external-links@^1.0.1 :
8882+ version "1.0.1"
8883+ resolved "https://registry.yarnpkg.com/remark-external-links/-/remark-external-links-1.0.1.tgz#6140251948eb408bae596d96e3ec2f79678f177e"
8884+ dependencies :
8885+ unist-util-select "~1.5.0"
8886+
88778887remark-parse@^1.1.0 :
88788888 version "1.1.0"
88798889 resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-1.1.0.tgz#c3ca10f9a8da04615c28f09aa4e304510526ec21"
@@ -10813,6 +10823,14 @@ unist-util-remove-position@^1.0.0:
1081310823 dependencies :
1081410824 unist-util-visit "^1.1.0"
1081510825
10826+ unist-util-select@~1.5.0 :
10827+ version "1.5.0"
10828+ resolved "https://registry.yarnpkg.com/unist-util-select/-/unist-util-select-1.5.0.tgz#a93c2be8c0f653827803b81331adec2aa24cd933"
10829+ dependencies :
10830+ css-selector-parser "^1.1.0"
10831+ debug "^2.2.0"
10832+ nth-check "^1.0.1"
10833+
1081610834unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1 :
1081710835 version "1.1.1"
1081810836 resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.1.tgz#3ccbdc53679eed6ecf3777dd7f5e3229c1b6aa3c"
You can’t perform that action at this time.
0 commit comments