Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 6 insertions, 1 deletions
-rwxr-xr-xmd-to-du.sed7
diff --git a/md-to-du.sed b/md-to-du.sed
index 2b315e2..7aeeaf3 100755
--- a/md-to-du.sed
+++ b/md-to-du.sed
@@ -4,6 +4,7 @@
# <br> -> \n
s/<br>/\\n/g
+s/ $/\\n/
# `...` -> `[...]`
s/`([^`]+)`/`[\1]`/g
@@ -15,8 +16,12 @@ s/\*([^*]+)\*/*[\1]*/g
# [TITLE](URL) -> [url URL TITLE]
s/\[([^]]*)\]\(([^)]*)\)/[url \2 \1]/g
+s/!\[url/[image/g
+
#== syndamia.com specifics ==#
+s/^---$/[$line]/g
+
#-- MEL --#
# &.x -> [$x]
-s/&\.([a-z]+)/[$\1]/g
+s/&\.([^ \t]+)/[$\1]/g