From 33a87ab2b62d4692c9e0450bccf203eafdd8cd80 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 14 Jul 2023 15:04:26 -0500 Subject: posts: added notes for saving urls --- app/utils/templates/utils/clipboardtomarkdown.html | 79 ++++++++++++++++++++++ app/utils/urls.py | 5 ++ 2 files changed, 84 insertions(+) create mode 100644 app/utils/templates/utils/clipboardtomarkdown.html (limited to 'app/utils') diff --git a/app/utils/templates/utils/clipboardtomarkdown.html b/app/utils/templates/utils/clipboardtomarkdown.html new file mode 100644 index 0000000..50ac63b --- /dev/null +++ b/app/utils/templates/utils/clipboardtomarkdown.html @@ -0,0 +1,79 @@ + + + + Paste to Markdown + + + + + + + + + + +
+
+

Paste to Markdown

+

Instructions

+
    +
  1. Find the text to convert to Markdown (e.g., in another browser tab)
  2. +
  3. Copy it to the clipboard (Ctrl+C, or ⌘+C on Mac)
  4. +
  5. Paste it into this window (Ctrl+V, or ⌘+V on Mac)
  6. +
  7. The converted Markdown will appear!
  8. +
+

The conversion is carried out by to-markdown, a Markdown converter written in JavaScript and running locally in the browser.

+
+
+ +
+ + diff --git a/app/utils/urls.py b/app/utils/urls.py index 7c37c5d..6ffa29f 100644 --- a/app/utils/urls.py +++ b/app/utils/urls.py @@ -9,4 +9,9 @@ urlpatterns = [ views.nav_json, name="admin_links" ), + path( + r'clipboardtomarkdown', + TemplateView.as_view(template_name="clipboardtomarkdown.html"), + name="tomarkdown" + ), ] -- cgit v1.2.3-70-g09d2