diff --git a/doc/Icons.md b/doc/Icons.md
index b9e2dbbb..07946bcc 100644
--- a/doc/Icons.md
+++ b/doc/Icons.md
@@ -53,7 +53,7 @@ You can pass URL options to the icon to modify its look. Note that every icon is
Simple syntax (example: a black line):
```html
-{{ markerLine({ width: 3, color: 'black' })|raw }}
+{{ markerLine({ width: 3, color: 'black' }) }}
```
The following marker types are available: line, polygon (a rectangle), circle, pointer
@@ -70,10 +70,10 @@ The following style parameters are possible:
Syntax with multiple symbols (example: a white line with a black casing). Only styles which are listed in the `styles` parameter will be used. Instead of `style:default:width` use `style:width`:
```html
-{{ markerLine({ styles: 'casing,default', 'style:casing': { color: 'black', width: 4 }, default: { color: 'black', width: 2 }})|raw }}
+{{ markerLine({ styles: 'casing,default', 'style:casing': { color: 'black', width: 4 }, default: { color: 'black', width: 2 }}) }}
```
You can use the `evaluate` function, to emulate a fake object (e.g. for map keys). The following example would draw a line, which looks like the symbol which is generated by this category for an OSM object with the tags highway=primary and maxspeed=80:
```html
-{{ markerLine(evaluate({ "highway": "primary", "maxspeed": "80" }))|raw }}
+{{ markerLine(evaluate({ "highway": "primary", "maxspeed": "80" })) }}
```
diff --git a/src/markers.js b/src/markers.js
index a901e441..db6b09fc 100644
--- a/src/markers.js
+++ b/src/markers.js
@@ -45,7 +45,7 @@ function markerLine (data) {
ret += ''
- return ret
+ return OverpassLayer.twig.filters.raw(ret)
}
function markerPolygon (data) {
@@ -59,7 +59,7 @@ function markerPolygon (data) {
ret += ''
- return ret
+ return OverpassLayer.twig.filters.raw(ret)
}
function markerCircle (data) {
@@ -77,7 +77,7 @@ function markerCircle (data) {
ret += ''
- return ret
+ return OverpassLayer.twig.filters.raw(ret)
}
function markerPointer (data) {
@@ -91,7 +91,7 @@ function markerPointer (data) {
ret += ''
- return ret
+ return OverpassLayer.twig.filters.raw(ret)
}
function parseOptions (data) {