Published unlisted
Edited
Jul 2, 2019
1 star
Insert cell
Insert cell
Insert cell
Insert cell
str = `
[test](http://test.com)
`
Insert cell
mdLinks(str)
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
nodes = input.querySelectorAll('span.processTitle > a');
Insert cell
isolateLinkText= function(exampleLink) {
return exampleLink.match(/<a [^>]+>([^<]+)<\/a>/)[1];
}
Insert cell
Insert cell
title = isolateLinkText(exampleLink)
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