X-Git-Url: https://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=markdown.awk;h=973818067497779dc286f234b1c1ed489f2e4dfe;hp=24235f613bcc28666b635eb6b1c75d02481d8618;hb=b089a33c27ef1af2b4d5816d4af7ef7809210a02;hpb=fa3afea3582cebca84678d4592ad739df6fd3e0d diff --git a/markdown.awk b/markdown.awk index 24235f6..9738180 100755 --- a/markdown.awk +++ b/markdown.awk @@ -412,6 +412,8 @@ BEGIN { # Buffering of full file ist necessary, e.g. to find reference links while (getline) { file = file $0 "\n"; } + # Clean up MS-DOS line breaks + gsub(/\r\n/, "\n", file); # Fill array of reference links f = file; rl_id;