dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 723e0712783e27865478374c8d5fcc6c148e171b
parent 3b1246b8e48200d5eed0dc39da2d8a8e8d5b3b8c
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sat,  7 Dec 2019 20:14:36 -0500

org2wiki sed scripts


Former-commit-id: e8e9942370ff8ba3759649e7e3dc1ead6c4c13f1
Diffstat:
Ascripts/org2wiki.sed | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/scripts/org2wiki.sed b/scripts/org2wiki.sed @@ -0,0 +1,17 @@ +# headers +s/^\* \(.*\)/= \1 =/ +s/^\*\{2\} \(.*\)/== \1 ==/ +s/^\*\{3\} \(.*\)/=== \1 ===/ +s/^\*\{4\} \(.*\)/==== \1 ====/ +s/^\*\{5\} \(.*\)/====== \1 =====/ +s/^\*\{6\} \(.*\)/====== \1 =====/ +# links +s/\[\[\(http[^]]*\)\]\[\([^]]*\)\]\]/[[\1|\2]]/g +# files/images +s/\[\[\([^]]*\)\]\[\([^]]+\)\]\]/{{local:\1|\2}}/g +s/\[\[\([^]|]*\)\]\]/{{local:\1}}/g +# code +s/#\+BEGIN_SRC \(.*\)/{{{class="code \1"/ +s/#\+END_SRC/}}}/ +# math +s/^ *\(.*\\[a-zA-Z].*\)/$\1$/