summaryrefslogtreecommitdiff
path: root/layouts/_default/single.gmi
AgeCommit message (Collapse)Author
2024-08-16Fix bug in bold/italics regexNicholas Johnson
Bold/italics regex must not match greedily.
2024-06-18Correct reference index countingv1.3.4Nicholas Johnson
2024-06-11Save link index in mapNicholas Johnson
This removes the need to recount.
2024-06-11Work around slices bug in Hugo v0.114.0 or newerNicholas Johnson
I used a slice of maps instead of a slice of slices, as recommended in the Hugo issue tracking the bug: https://github.com/gohugoio/hugo/issues/11131#issuecomment-1601769489
2024-05-20Fix Gemini incorrectly rendering (un)ordered listsNicholas Johnson
2024-05-02Give rationale for bold/italics codev1.2.5Nicholas Johnson
2024-05-02Improve bold/italics regexNicholas Johnson
2024-05-02Improve commentsNicholas Johnson
2024-05-02Correct heading regexNicholas Johnson
2024-05-02Don't match newlines in link regexNicholas Johnson
2024-02-04Fix end of comment delimiterv1.2.3Nicholas Johnson
The incorrect delimiter was commenting out subsequent regex rules, making it so they never got applied.
2024-02-04Add missing multiline regex option for ol'sNicholas Johnson
2024-01-01Add missing asterisk for unordered listsv1.2.2Nicholas Johnson
2023-12-31Convert Markdown's ol to gemtext's ulv1.2.0Nicholas Johnson
2023-12-31Add support for alternative heading syntaxv1.1.0Nicholas Johnson
2023-11-03Make layout spacing consistentv1.0.8Nicholas Johnson
2023-11-03Use superscripted reference numbers for linksNicholas Johnson
The implementation is ugly, but I couldn't find another way to accomplish this.
2023-09-09Add brackets around link index numbersNicholas Johnson
2023-08-25Simplify link reference printing logicNicholas Johnson
2023-08-25Fix spacing heading spacing for single.gmiNicholas Johnson
2023-08-25Fix single page Gemini metadata spacingNicholas Johnson
2023-08-25Fix single.gmi reference spacingNicholas Johnson
2023-08-25Fix Gemini header spacingNicholas Johnson
2023-08-25chomp() user contentNicholas Johnson
User content may contain newlines at the end of files, which create problems for spacing in Gemini.
2023-08-25Prefer right-aligned whitespace eliminationNicholas Johnson
2023-08-25Remove EOLs in embedded layoutsNicholas Johnson
2023-08-02Rename links var to referencesNicholas Johnson
2023-08-01Add multilingual support for single pagesNicholas Johnson
2023-07-31Add multilingual support for homepage linkNicholas Johnson
2023-05-16Fix gemini comment spacingv0.5.6Nicholas Johnson
2023-05-09Document gemini single page rendererNicholas Johnson
2023-05-09Fix extraneous matchesNicholas Johnson
2023-05-09Change variable nameNicholas Johnson
2023-05-05Allow whitespace in Markdown linksNicholas Johnson
2023-05-05Add link title support to GeminiNicholas Johnson
2023-05-05Replace findRE with findRESubmatch where possibleNicholas Johnson
2023-05-05Don't unnecessarily generate chunk refsNicholas Johnson
2023-05-05Make Gemini ignore link titlesNicholas Johnson
2023-05-05Add inline image support for HTMLNicholas Johnson
2023-05-04Add support for + unordered list symbolNicholas Johnson
2023-03-16Fix link parsing in single Gemini pagesv0.4.4Nicholas Johnson
Gemini pages would forget about links coming before preformatted text, causing improper link indexing and missing links.
2023-02-24Declare safeHTML where possibleNicholas Johnson
2023-02-24Add tag list to metadata partialNicholas Johnson
2023-02-05Fix Gemini bold/italics removal regexv0.3.3Nicholas Johnson
2023-01-28Always render link emoji for referencesv0.3.2Nicholas Johnson
2023-01-25Rename $cur_chunk to $rendered_textv0.3.1Nicholas Johnson
2023-01-25Remove extra variable assignmentNicholas Johnson
2023-01-25Make regex more preciseNicholas Johnson
2023-01-24Rewrite Gemini chunk and link parsing logicv0.3.0Nicholas Johnson
Improved the chunk-finding regex and added safeguards to prevent unintended behavior. Chunk rendering logic had a bug. If the pre-formatted text was identical to the regular text, it would be wrongly overwritten. To resolve this, the find-and-replace-style logic was removed. The new logic splits chunks into parts, renders them, then reassembles them in in order.
2023-01-23Fix italics/bold removal regex for Geminiv0.2.1Nicholas Johnson