💾 Archived View for thatit.be › 2023-04-18-22-22-53.gmi captured on 2024-05-26 at 14:48:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

➡️ Next capture (2024-06-16)

🚧 View Differences

-=-=-=-=-=-=-

reference links, the alternate link format

Apparently you can create a link using a footnote-like format. I found this out while reading the documentation for 7off. Well, there are sort of two link formats like this.

The first looks like this:

Lorem [ipsum] dolor set.

[ipsum]: url "Title string"

Which can be represented in a more familiar (to me) Markdown format:

Lorem [ipsum](url "Title string") dolor set.

These are called reference links.

You can control where they land in a document with the --referece-location option to pandoc. Valid values are block|section|document.

To use them, pass the --reference-links option to pandoc.

I think I can use this to convert my notes en masses to reference links so they’re more easily converted to Gemini’s format.

This doesn’t work very well for my index page, as those should not be reference links, rather inline. And there will likely be other cases where I want to control the format, so I will only do a one-shot conversion on notes as I encounter them and need to convert them. I’m not sure how to preserve the YAML headers when I do this. Maybe I should use a tag in the header to indicate when links should be preserved or converted to reference links.

I’ve started to use this one at a time on notes as I encounter them when it looks like they need fixing. Inside Vim I shift+v, highlight the article text (skipping over the YAML header) and then invoke pandoc -i markdown -t markdown --reference-links --reference-location=section and it does a nice and typo-free conversion for me.

Post: Trying out 7off

Tags

#pandoc

Navigation

index

tags

updated: 2023-04-19 07:11:33

generated: 2024-05-25