Published
Edited
Nov 15, 2020
Importers
6 stars
Insert cell
Insert cell
Insert cell
mdh`

## Example

~~~js
selection.on("mousemove +++touchmove+++", function(___event___) {
… ~~~d3.event~~~ +++event+++ …
})
~~~

`
Insert cell
mdh = {
const hljs = window.hljs || (await require("@observablehq/highlight.js"));

return function() {
const node = md(...arguments);
for (const fragment of node.querySelectorAll("code")) {
hljs.highlightBlock(fragment);

fragment.innerHTML = fragment.innerHTML.replace(
/___(.*?)___/g,
'<mark>$1</mark>'
);
fragment.innerHTML = fragment.innerHTML.replace(
/~~~(.*?)~~~/g,
'<del style="background:pink">$1</del>'
);
fragment.innerHTML = fragment.innerHTML.replace(
/[+][+][+](.*?)[+][+][+]/g,
'<mark style="background:lightgreen">$1</mark>'
);
}

return node;
};
}
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