check in
authorZack M. Davis <[email protected]>
Sat, 30 Dec 2023 17:33:01 +0000 (09:33 -0800)
committerZack M. Davis <[email protected]>
Sun, 31 Dec 2023 07:06:34 +0000 (23:06 -0800)
notes/notes.txt
notes/patriate_links.py [new file with mode: 0755]
notes/tech_tasks.txt

index 422d781..ac5d639 100644 (file)
@@ -3377,3 +3377,5 @@ https://www.theknownheretic.com/p/sex-mimics-are-mimicspart-1
 https://benexdict.io/p/math-team
 
 https://thepostmillennial.com/trans-runner-shatters-womens-sprinting-record-only-one-year-after-earning-19th-place-in-male-competition
+
+https://www.reddit.com/r/MtF/comments/18tggaq/i_get_aroused_when_i_have_gender_euphoria_is_that/
diff --git a/notes/patriate_links.py b/notes/patriate_links.py
new file mode 100755 (executable)
index 0000000..1781b75
--- /dev/null
@@ -0,0 +1,31 @@
+#!/usr/bin/python3
+
+import re
+import sys
+
+# Python script to rewrite Markdown links and remove anchors
+# mostly by GPT-4
+
+# Define the path for the input and output files
+input_file_path = sys.argv[1]
+output_file_path = "out.md"
+
+# Define the regular expression patterns for Markdown links and anchors
+markdown_link_pattern = re.compile(r'\]\(/(\d{4}/\w{3}/[-\w]+/)\)')
+anchor_pattern = re.compile(r'<a id="[-\w]+"></a>')
+
+# Read the content of the original markdown file
+with open(input_file_path, 'r') as file:
+    content = file.read()
+
+# Replace the Markdown links with the new format
+rewritten_content = markdown_link_pattern.sub(r'](http://unremediatedgender.space/\1)', content)
+
+# Remove the anchors
+rewritten_content = anchor_pattern.sub('', rewritten_content)
+
+# Write the rewritten content to a new file
+with open(output_file_path, 'w') as file:
+    file.write(rewritten_content)
+
+print(f"rewritten markdown has been saved to {output_file_path}")
index e8702da..611a0be 100644 (file)
@@ -1,3 +1,4 @@
+social media share card https://dev.to/mishmanners/how-to-add-a-social-media-share-card-to-any-website-ha8
 relative URLs = False (but not broken)
 make Markdown native footnote CSS match the plugin-based footnotes
 undo the Slate Starchive links