The markup renderer will still literally render html tags inside "pre" and "code" unless they're escaped. The result was that the example code would be rendered as:
var baseMaps = {
"Grayscale": grayscale,
"Streets": streets
};
rather than
var baseMaps = {
"<span style='color: gray'>Grayscale</span>": grayscale,
"Streets": streets
};
because the "Grayscale" text would be literally styled as a span with gray color, and then recolored by the syntax highlighter.
Escaping the span tags fixes this.
1. Improve some of the language to be more readable
2. Correct reference to night style base map, which isn't actually used
3. Add detail that it's possible to style the text in the control
* Clean up docs/examples - one directory per tutorial, more templating.
* Fix some URLs
* tutorials: update rendered CDN links to 1.0.0 and L.circle signature (#4975)
* Update shown CDN links to 1.0.0
As initially done in PR #4967, but just for the rendered links (what the users sees), as actual link / script tags are already updated.
* DOCS update L.circle to new syntax
in quick-start tutorial, following PR #4974.
* DOCS update L.circle to new syntak (example src)
updated L.circle to new signature (radius as an option instead of 2nd parameter).
* tutorials: use L.geoJSON new syntax (#4983)
* tutorials: use new syntax L.geoJSON
for consistency with recommended factory new syntax (`L.geoJSON` instead of legacy `L.geoJson`).
As done in PR #4933 for docstrings.
* tutorials: L.geoJSON new syntax in script
* Renamed several files to directory/index.md