From 1e1c5e7f4ca46676fe8bbdd7545369220b71e9a3 Mon Sep 17 00:00:00 2001
From: Albert Krewinkel <albert@zeitkraut.de>
Date: Tue, 28 Jul 2020 22:28:43 +0200
Subject: Lua filter docs: remove link table example

The example is outdated and requires a complete overhaul.
---
 doc/lua-filters.md | 36 ------------------------------------
 1 file changed, 36 deletions(-)

(limited to 'doc')

diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 1bb85493f..35004e854 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -371,42 +371,6 @@ function Meta(m)
 end
 ```
 
-## Extracting information about links
-
-This filter prints a table of all the URLs linked to in the
-document, together with the number of links to that URL.
-
-``` lua
-links = {}
-
-function Link (el)
-  if links[el.target] then
-    links[el.target] = links[el.target] + 1
-  else
-    links[el.target] = 1
-  end
-  return el
-end
-
-function Doc (blocks, meta)
-  function strCell(str)
-    return {pandoc.Plain{pandoc.Str(str)}}
-  end
-  local caption = {pandoc.Str "Link", pandoc.Space(), pandoc.Str "count"}
-  local aligns = {pandoc.AlignDefault, pandoc.AlignLeft}
-  local widths = {0.8, 0.2}
-  local headers = {strCell "Target", strCell "Count"}
-  local rows = {}
-  for link, count in pairs(links) do
-    rows[#rows + 1] = {strCell(link), strCell(count)}
-  end
-  return pandoc.Doc(
-    {pandoc.Table(caption, aligns, widths, headers, rows)},
-    meta
-  )
-end
-```
-
 ## Remove spaces before citations
 
 This filter removes all spaces preceding an "author-in-text"
-- 
cgit v1.2.3