When I was reviewing some D3 examples, I found that the color of the first const keyword is different from that of the rest in an ojs block! https://observablehq.com/@d3/bar-chart/2
When I was reviewing some D3 examples, I found that the color of the first const keyword is different from that of the rest in an ojs block! https://observablehq.com/@d3/bar-chart/2
Yes, syntax highlighting for Observable JavaScript cells just uses the vanilla JavaScript lexer, so it’s not very accurate.