Published unlisted
Edited
Jul 2, 2019
1 star
Insert cell
Insert cell
Insert cell
Insert cell
str = md`
[test](http://test.com)
`
Insert cell
Insert cell
input = html`
<p><a href="http://test.com">test</a></p>
`
Insert cell
arr = [].slice.call( input.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