!! test - custom link text !! input !! result

Foo & bar

!! end !! test - HTML sanitization !! input !! result

<&

!! end !! test - counters and markers !! input { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-number" } } { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-number" } } { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-letter" } } { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-letter" } } !! result

Foo

2

A

B

!! end !! test - autolabelling with coordinates !! input !! result

10°0′0″N 20°0′0″E

!! end !! test !! input !! result
!! end !! test Error messages !! input >Derp goes here !! result

<maplink> problems:

  • Syntax error
  • Attribute "longitude" has an invalid value
  • Attribute "zoom" is missing

<mapframe> problems:

  • Attribute "mapstyle" has an invalid value
  • Attribute "align" has an invalid value
<mapframe>: Attribute "width" has an invalid value
<mapframe>: Attribute "width" has an invalid value
<mapframe>: Attribute "width" has an invalid value
<mapframe>: Attribute "width" has an invalid value
!! end !! test CSS sanitization !! input !! result

foo foo

!! end !! test Marker styles !! input [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [1, 2] } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-letter", "marker-color": "#abc" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-number", "marker-color": "#DDEEFF" } } ] { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-number", "marker-color": "fff" } } { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] }, "properties": { "marker-symbol": "-number", "marker-color": "something bad" } } !! result

A

2

3

!! end