diff options
author | Rob Austein <sra@hactrn.net> | 2021-05-09 21:17:14 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2021-05-09 21:17:14 +0000 |
commit | 96f8ab4641056020192175c0a02c562e8113dbd7 (patch) | |
tree | e255e4f1d449dc6a714d4dba3fd706c527f8f072 | |
parent | 58ec00ea0b2d24f86296bcbe8c7f77366d2620b7 (diff) |
Fix one kind of link farble by processing Creole before CamelCase
Still some messes due to lack of bang-quoting of "CrypTech".
-rw-r--r-- | pelican/content/DocMeet.md | 2 | ||||
-rw-r--r-- | pelican/content/ExternalProjectsTorHSM.md | 2 | ||||
-rwxr-xr-x | trac2md.py | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/pelican/content/DocMeet.md b/pelican/content/DocMeet.md index 224998a..9df8e95 100644 --- a/pelican/content/DocMeet.md +++ b/pelican/content/DocMeet.md @@ -13,4 +13,4 @@ Date: 2016-12-15 22:39 ## Documents * [140109.cryptech.pdf Presentation - Overview of Project with Funding Requests]({attach}DocMeet/140109.cryptech.pdf) -* [attachment:141002.cryptech-iij.pdf 141002.cryptech-iij.pdf [CrypTech]({filename}CrypTech.md) Presentation at Open IIJ Seminar] +* [[attachment:141002.cryptech-iij.pdf|141002.cryptech-iij.pdf [CrypTech]({filename}CrypTech.md) Presentation at Open IIJ Seminar]] diff --git a/pelican/content/ExternalProjectsTorHSM.md b/pelican/content/ExternalProjectsTorHSM.md index 40ff4ee..46fe696 100644 --- a/pelican/content/ExternalProjectsTorHSM.md +++ b/pelican/content/ExternalProjectsTorHSM.md @@ -90,6 +90,6 @@ The system at MS6 (to MS8) does not make any part of the process worse from a // * [Tor directory protocol, version 3](https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt) -* [https://www.crowdsupply.com/cryptech/open-hardware-security-module [CrypTech]({filename}CrypTech.md) Alpha system] +* [CrypTech Alpha system](https://www.crowdsupply.com/cryptech/open-hardware-security-module) @@ -73,12 +73,12 @@ class Trac2Markdown: self.source_url = source_url self.pattern_actions = ( - # Convert CamelCase links to explicit links - (self.camelcase_pattern, r"[[\1]]"), - # Convert TracLinks to WikiCreole syntax to simplify remaining processing (re.compile(r"(?<!\[)\[([^][]+)\]"), self.convert_to_creole), + # Convert CamelCase links to explicit links + (self.camelcase_pattern, r"[[\1]]"), + # Convert !x quoting (re.compile(r"!((?:\w|[#])+)"), r"\1"), |