mapzen / documentation

Configuration files, tools, and content to build Mapzen's documentation
https://mapzen.com/documentation
MIT License
25 stars 22 forks source link

Complex links not being parsed as links on docs site #242

Open rmglennon opened 7 years ago

rmglennon commented 7 years ago

This is an example query from the routing documentation where the string is different from the actual link URL:

[/route?json={"locations":[{"lat":40.730930,"lon":-73.991379,"street":"Wanamaker Place"},{"lat":40.749706,"lon":-73.991562,"street":"Penn Plaza"}],"costing":"multimodal","costing_options":{"transit":{"filters":{"stops":{"ids":["s-dr5rsq8pqg-8st~nyu<r21n","s-dr5rsr9wyg-14st~unionsq<r20n"],"action":"exclude"},"routes":{"ids":["r-dr5r-r"],"action":"exclude"},"operators":{"ids":["o-dr5r-path"],"action":"include"}}}},"directions_options":{"units":"miles"}}&api_key=mapzen-xxxxxxx](https://valhalla.mapzen.com/route?json={"locations":[{"lat":40.730930,"lon":-73.991379,"street":"Wanamaker Place"},{"lat":40.749706,"lon":-73.991562,"street":"Penn Plaza"}],"costing":"multimodal","costing_options":{"transit":{"filters":{"stops":{"ids":["s-dr5rsq8pqg-8st~nyu<r21n","s-dr5rsr9wyg-14st~unionsq<r20n"],"action":"exclude"},"routes":{"ids":["r-dr5r-r"],"action":"exclude"},"operators":{"ids":["o-dr5r-path"],"action":"include"}}}},"directions_options":{"units":"miles"}})

In GitHub markdown preview, it looks like this (as desired): image

In the formatted documentation, it is not getting recognized as a full link and there is subscript text:

image

image

rmglennon commented 7 years ago

Going to use the raw version with everything escaped...

<a href="https://valhalla.mapzen.com/route?json=%7B%22locations%22:%5B%7B%22lat%22:40.730930,%22lon%22:-73.991379,%22street%22:%22Wanamaker%20Place%22%7D,%7B%22lat%22:40.749706,%22lon%22:-73.991562,%22street%22:%22Penn%20Plaza%22%7D%5D,%22costing%22:%22multimodal%22,%22costing_options%22:%7B%22transit%22:%7B%22filters%22:%7B%22stops%22:%7B%22ids%22:%5B%22s-dr5rsq8pqg-8st%7Enyu%3Cr21n%22,%22s-dr5rsr9wyg-14st%7Eunionsq%3Cr20n%22%5D,%22action%22:%22exclude%22%7D,%22routes%22:%7B%22ids%22:%5B%22r-dr5r-r%22%5D,%22action%22:%22exclude%22%7D,%22operators%22:%7B%22ids%22:%5B%22o-dr5r-path%22%5D,%22action%22:%22include%22%7D%7D%7D%7D,%22directions_options%22:%7B%22units%22:%22miles%22%7D%7D" target="_blank">/route?json={"locations":[{"lat":40.730930,"lon":-73.991379,"street":"Wanamaker Place"},{"lat":40.749706,"lon":-73.991562,"street":"Penn Plaza"}],"costing":"multimodal","costing_options":{"transit":{"filters":{"stops":{"ids":["s-dr5rsq8pqg-8st~nyu&#60;r21n","s-dr5rsr9wyg-14st&#126;unionsq&#60;r20n"],"action":"exclude"},"routes":{"ids":["r-dr5r-r"],"action":"exclude"},"operators":{"ids":["o-dr5r-path"],"action":"include"}}}},"directions_options":{"units":"miles"}}&api_key=mapzen-xxxxxxx</a>