From f9abdbfd770411b2480d41c36c24758d004d79b5 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 9 Nov 2020 18:14:09 +0100 Subject: [PATCH] Create instruction page for markdown fields Instead of directly linking to the spec, include some basic info and a list of our limitations. --- media/js/markdown_preview.js | 2 +- .../pages/account/markdown_submission.html | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 templates/pages/account/markdown_submission.html diff --git a/media/js/markdown_preview.js b/media/js/markdown_preview.js index 54a31864..fdf9bdd6 100644 --- a/media/js/markdown_preview.js +++ b/media/js/markdown_preview.js @@ -23,7 +23,7 @@ function attach_markdown_preview(objid, admin) { obj.parentNode.insertBefore(newdiv, obj.nextSibling); - obj.infospan_html_base = admin ? '' : 'This field supports markdown. See below for a preview.'; + obj.infospan_html_base = admin ? '' : 'This field supports markdown. See below for a preview.'; obj.infospan = document.createElement('span'); obj.infospan.innerHTML = obj.infospan_html_base; diff --git a/templates/pages/account/markdown_submission.html b/templates/pages/account/markdown_submission.html new file mode 100644 index 00000000..a50f6195 --- /dev/null +++ b/templates/pages/account/markdown_submission.html @@ -0,0 +1,44 @@ +{%extends "base/page.html"%} +{%block title%}Markdown submission{%endblock%} +{%block contents%} +

Markdown submission

+ +

+ Some forms on the postgresql.org website allows you to submit text + in markdown format. This is a simple markup format that lets + you do basic formatting inline. +

+ +

+ You can find a basic introduction to markdown at + markdownguide.org. +

+ +

+ This site + supports basic + markdown syntax with the following exceptions: +

+ + + +

Preview

+

+ The live preview of markdown fields does not work on + Internet Explorer. +

+

+ The preview is updated asynchronously, so there may be a few seconds + delay between making a change and the preview updating, depending on + network speed. +

+ +{%endblock%} -- 2.39.5