Published unlisted
Edited
Jul 2, 2019
Insert cell
Insert cell
str = md`
[test](http://test.com)
`
Insert cell
Insert cell
Insert cell
mdLinks(str)
Insert cell
Insert cell
arr = [].slice.call( str.querySelectorAll('a') );
Insert cell
markup = arr.map(function(elem) { return elem.outerHTML; });
Insert cell
urls = arr.map(function(elem) { return elem.getAttribute('href'); });
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more