* Check for broken links with implicit targets
@ 2020-10-28 12:27 Thomas Hodgson
0 siblings, 0 replies; only message in thread
From: Thomas Hodgson @ 2020-10-28 12:27 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1214 bytes --]
I would like to check my documents for broken links, in particular a case
like this, where the links rely on implicit header references
<https://pandoc.org/MANUAL.html#headings-and-sections>:
```
# Section
[Broken]
```
I found a Lua filter here:
<https://github.com/jgm/pandoc/issues/1621#issuecomment-613336520>. But, it
doesn't work for this case because, if I understand correctly, Pandoc won't
treat '[Broken]' as a link with a target '#broken'. The filter looks for
links which have targets that aren't in a list of the identifiers in the
document. Here is the result of `$ pandoc -t native foo.md':
```
[Header 1 ("section",[],[]) [Str "Section"]
,Para [Link ("",[],[]) [Str "Section"] ("#section","")]
,Para [Str "[Broken]"]]
```
Is there a way to check for that kind of broken link?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87bbdcdd-ffd4-4d3e-a2f1-a05880281840n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1689 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-28 12:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28 12:27 Check for broken links with implicit targets Thomas Hodgson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).