aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorSalim B <salim@posteo.de>2021-02-27 01:56:04 +0000
committerGitHub <noreply@github.com>2021-02-26 17:56:04 -0800
commitfae6a204f1a072d5efe4dff35fd08fbad2071198 (patch)
treec182a50b77fe2ae0eccec9082838383638cda919 /src/Text/Pandoc
parent8123571e8efa4fc02004e9c3812b5177f9d0c8c4 (diff)
downloadpandoc-fae6a204f1a072d5efe4dff35fd08fbad2071198.tar.gz
Fix/update URLs and use HTTP**S** where possible (#7122)
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Citeproc.hs2
-rw-r--r--src/Text/Pandoc/Citeproc/BibTeX.hs8
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs2
-rw-r--r--src/Text/Pandoc/Writers/Markdown.hs2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/Text/Pandoc/Citeproc.hs b/src/Text/Pandoc/Citeproc.hs
index 6658c8c0c..38e992ba1 100644
--- a/src/Text/Pandoc/Citeproc.hs
+++ b/src/Text/Pandoc/Citeproc.hs
@@ -544,7 +544,7 @@ linkifyVariables ref =
fixShortDOI x = let x' = extractText x
in if "10/" `T.isPrefixOf` x'
then TextVal $ T.drop 3 x'
- -- see http://shortdoi.org
+ -- see https://shortdoi.org
else TextVal x'
tolink pref x = let x' = extractText x
x'' = if "://" `T.isInfixOf` x'
diff --git a/src/Text/Pandoc/Citeproc/BibTeX.hs b/src/Text/Pandoc/Citeproc/BibTeX.hs
index 416fe439e..c0752dadc 100644
--- a/src/Text/Pandoc/Citeproc/BibTeX.hs
+++ b/src/Text/Pandoc/Citeproc/BibTeX.hs
@@ -577,10 +577,10 @@ itemToReference locale variant item = do
eprint <- getRawField "eprint"
let baseUrl =
case T.toLower etype of
- "arxiv" -> "http://arxiv.org/abs/"
- "jstor" -> "http://www.jstor.org/stable/"
- "pubmed" -> "http://www.ncbi.nlm.nih.gov/pubmed/"
- "googlebooks" -> "http://books.google.com?id="
+ "arxiv" -> "https://arxiv.org/abs/"
+ "jstor" -> "https://www.jstor.org/stable/"
+ "pubmed" -> "https://www.ncbi.nlm.nih.gov/pubmed/"
+ "googlebooks" -> "https://books.google.com?id="
_ -> ""
if T.null baseUrl
then mzero
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs
index 4991c6308..860da2dc3 100644
--- a/src/Text/Pandoc/Readers/Textile.hs
+++ b/src/Text/Pandoc/Readers/Textile.hs
@@ -11,7 +11,7 @@
Portability : portable
Conversion from Textile to 'Pandoc' document, based on the spec
-available at http://redcloth.org/textile.
+available at https://www.promptworks.com/textile/.
Implemented and parsed:
- Paragraphs
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs
index 898905603..d33246a63 100644
--- a/src/Text/Pandoc/Writers/Markdown.hs
+++ b/src/Text/Pandoc/Writers/Markdown.hs
@@ -14,7 +14,7 @@
Conversion of 'Pandoc' documents to markdown-formatted plain text.
-Markdown: <http://daringfireball.net/projects/markdown/>
+Markdown: <https://daringfireball.net/projects/markdown/>
-}
module Text.Pandoc.Writers.Markdown (
writeMarkdown,