From f813f23d2ca96cf142e942a6bfa7c79e243da12c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 18 Jan 2024 09:33:16 -1000 Subject: [PATCH] wikilinks: remove single quotes (straight apostrophe) from urls --- out/_redirects | 5 +++-- ...Dont-Sink-Your-First-Attempts-at-Plaintext-Accounting.md} | 0 src/index.md | 2 +- wikilinks.lua | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename src/{Don't-Sink-Your-First-Attempts-at-Plaintext-Accounting.md => Dont-Sink-Your-First-Attempts-at-Plaintext-Accounting.md} (100%) diff --git a/out/_redirects b/out/_redirects index fa206e1..c0a9586 100644 --- a/out/_redirects +++ b/out/_redirects @@ -1,2 +1,3 @@ -/Newcomer-FAQ /What-is-Plain-Text-Accounting -/Getting-started-FAQ /FAQ +/Newcomer-FAQ /What-is-Plain-Text-Accounting +/Getting-started-FAQ /FAQ +/Don't-Sink-Your-First-Attempts-at-Plaintext-Accounting /Dont-Sink-Your-First-Attempts-at-Plaintext-Accounting diff --git a/src/Don't-Sink-Your-First-Attempts-at-Plaintext-Accounting.md b/src/Dont-Sink-Your-First-Attempts-at-Plaintext-Accounting.md similarity index 100% rename from src/Don't-Sink-Your-First-Attempts-at-Plaintext-Accounting.md rename to src/Dont-Sink-Your-First-Attempts-at-Plaintext-Accounting.md diff --git a/src/index.md b/src/index.md index fa900e6..3bb0c10 100644 --- a/src/index.md +++ b/src/index.md @@ -373,7 +373,7 @@ or help improve the [content](https://github.com/plaintextaccounting/plaintextac - [hledger: Get Started](https://hledger.org/start.html) - [Getting Started with Beancount](https://beancount.github.io/docs/getting_started_with_beancount.html) - [Tackler: Quickstart](https://tackler.e257.fi/docs/quickstart/) -- [Don't Sink Your First Attempts at Plaintext Accounting](Don't-Sink-Your-First-Attempts-at-Plaintext-Accounting.html) h/ledger syntax tips for beginners +- [[Don't Sink Your First Attempts at Plaintext Accounting]] - [Program your Finances: Command-line Accounting](https://www.petekeen.net/keeping-finances-with-ledger) - [Plain Text Accounting Workshop](https://github.com/colindean/plaintextaccounting_workshop) - [[Cookbook.html#getting-started|Cookbook: Getting started]] diff --git a/wikilinks.lua b/wikilinks.lua index 75a1f72..c611d2a 100644 --- a/wikilinks.lua +++ b/wikilinks.lua @@ -14,7 +14,7 @@ function Link(el) if el.title == "wikilink" then t = el.target .. "#" t = t:gsub(" ", "-") - -- t = t:gsub(t, "'", "") + t = t:gsub("'", "") path, frag = t:match("([^#]*)#([^#]*)") t = path if not (