UNPKG
@r/api-client
Version:
latest (3.37.0)
3.37.0
3.36.0
3.35.0
3.34.0
3.33.2
3.33.1
3.33.0
3.32.2
3.32.1
3.32.0
3.31.0
3.30.1
3.30.0
3.29.2
3.29.1
3.29.0
3.28.0
3.27.4
3.27.3
3.27.2
3.27.1
3.27.0
3.26.3
3.26.2
3.26.1
3.26.0
3.25.0
3.24.0
3.23.0
3.22.10
3.22.9
3.22.8
3.22.7
3.22.6
3.22.5
3.22.4
3.22.3
3.22.2
3.22.1
3.22.0
3.21.0
3.20.4
3.20.3
3.20.2
3.20.1
3.20.0
3.19.2
3.19.1
3.19.0
3.18.0
3.17.2
3.17.1
3.17.0
3.16.0
3.15.1
3.15.0
3.14.6
3.14.5
3.14.4
3.14.3
3.14.2
3.14.1
3.14.0
3.13.0
3.12.2
3.12.0
3.11.0
3.10.2
3.10.1
3.10.0
3.9.0
3.8.1
3.8.0
3.7.5
3.7.4
3.7.3
3.7.2
3.7.1
3.7.0
3.6.0
3.5.0
3.4.0
3.3.1
3.3.0
3.2.7
3.2.6
3.2.5
3.2.3
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.0
2.0.0
1.26.2
1.26.1
1.26.0
1.25.2
1.25.1
1.25.0
1.24.0
1.23.6
1.23.5
1.23.4
1.23.3
1.23.2
1.23.1
1.23.0
A wrapper for Reddit's API
github.com/reddit/node-api-client
reddit/node-api-client
@r/api-client
/
src
/
lib
/
markdown.es6.js
8 lines
(5 loc)
•
137 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
default
function
process
(
text
) {
if
(!text)
return
text; text = text.
replace
(
/<a/g
,
'<a target="_blank"'
);
return
text; }