{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSeaMap/online_chart/issues/71","labels_url":"https://api.github.com/repos/OpenSeaMap/online_chart/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/OpenSeaMap/online_chart/issues/71/comments","events_url":"https://api.github.com/repos/OpenSeaMap/online_chart/issues/71/events","html_url":"https://github.com/OpenSeaMap/online_chart/issues/71","id":112643167,"number":71,"title":"Marker from Permalink: Text markup","user":{"login":"aAXEe","id":3298652,"avatar_url":"https://avatars.githubusercontent.com/u/3298652?v=3","gravatar_id":"","url":"https://api.github.com/users/aAXEe","html_url":"https://github.com/aAXEe","followers_url":"https://api.github.com/users/aAXEe/followers","following_url":"https://api.github.com/users/aAXEe/following{/other_user}","gists_url":"https://api.github.com/users/aAXEe/gists{/gist_id}","starred_url":"https://api.github.com/users/aAXEe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aAXEe/subscriptions","organizations_url":"https://api.github.com/users/aAXEe/orgs","repos_url":"https://api.github.com/users/aAXEe/repos","events_url":"https://api.github.com/users/aAXEe/events{/privacy}","received_events_url":"https://api.github.com/users/aAXEe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T17:47:02Z","updated_at":"2015-10-21T18:34:45Z","closed_at":null,"body":"# Background\r\nCommit https://github.com/aAXEe/online_chart/commit/8649157158f921590d650e2d2f4bdf0df1017e9d removes the possibility to use HTML code as markup in the description for a map marker which is loaded from the page URL. This is because of security risks (see http://stackoverflow.com/questions/33184716/is-it-save-to-display-html-code-decoded-by-decodeuricomponent-from-a-url).\r\n\r\nCurrently only line breaks are converted than displaying text from the ```mtext``` URL parameter.\r\n\r\n# Feature request\r\nSupport some kind of markup in this text.\r\n\r\nSuggestion: [markdown](https://guides.github.com/features/mastering-markdown) \r\n* javascript libs: https://github.com/showdownjs/showdown or https://github.com/evilstreak/markdown-js\r\n\r\n## Needed parts\r\n- [ ] convert text from the  ```mtext``` URL parameter into valid and **save** HTML code than displaying a map marker\r\n- [ ] provide help for the user at the text field for entering these codes. Possibilities:\r\n  - [ ] Simple text in the near of the text field with a link to some external site (example: https://guides.github.com/features/mastering-markdown)\r\n  - [ ] formating helpers for the text field (select some text, click the helper and it inserts the markup code for you)\r\n  - [ ] [Wysiwyg Editor](https://duckduckgo.com/l/?kh=-1&uddg=https%3A%2F%2Fde.wikipedia.org%2Fwiki%2FWysiwyg)\r\n  - [ ] side-by-side preview of the marker (idea: show the marker on the map as the user who clicked the link will see it?)\r\n\r\n\r\nWhat do you think?\r\n\r\nFeel free to edit this issue and update the todo lists above!"},"comment":{"url":"https://api.github.com/repos/OpenSeaMap/online_chart/issues/comments/149987629","html_url":"https://github.com/OpenSeaMap/online_chart/issues/71#issuecomment-149987629","issue_url":"https://api.github.com/repos/OpenSeaMap/online_chart/issues/71","id":149987629,"user":{"login":"Nautic","id":1636150,"avatar_url":"https://avatars.githubusercontent.com/u/1636150?v=3","gravatar_id":"","url":"https://api.github.com/users/Nautic","html_url":"https://github.com/Nautic","followers_url":"https://api.github.com/users/Nautic/followers","following_url":"https://api.github.com/users/Nautic/following{/other_user}","gists_url":"https://api.github.com/users/Nautic/gists{/gist_id}","starred_url":"https://api.github.com/users/Nautic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nautic/subscriptions","organizations_url":"https://api.github.com/users/Nautic/orgs","repos_url":"https://api.github.com/users/Nautic/repos","events_url":"https://api.github.com/users/Nautic/events{/privacy}","received_events_url":"https://api.github.com/users/Nautic/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T18:34:45Z","updated_at":"2015-10-21T18:34:45Z","body":"**fett** \r\nneue Zeile \r\nund normaler Text\r\n\r\nDas reicht um den bisherigen Stand wiederherzustellen.\r\n\r\nAls zweiter Schritt wäre eine [klickbare URL](http://github.com) hilfreich.\r\n\r\n\"Formatting helpers\": je ein Icon für \"fett\" und \"URL einfügen\" wäre hilfreich.\r\nplus ein \"i\" mit Link zu http://wiki.openseamap.org/wiki/De:Marker_in_URL\r\n\r\nVielleicht muss man noch die erzeugte URL-Länge begrenzen ?\r\n(erlaubte Zeichenzahl? Zeichen pro Zeile? Anzahl Zeilen?) \r\n\r\nAlles weitere ist m.E. zum jetzigen Zeitpunkt von sehr niedriger Priorität."}}