Created
January 21, 2015 13:07
-
-
Save gbirke/8ce99e5219c3d50df7c0 to your computer and use it in GitHub Desktop.
FUSEKI text tables to Markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"caption": "Reg Replace: Fuseki Table to Markdown", | |
"command": "reg_replace", | |
"args": {"replacements": [ | |
"fuseki_table_begin_end", | |
"fuseki_quote_resource", | |
"fuseki_remove_dash_lines", | |
"fuseki_replace_equal_lines" | |
]} | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"replacements": { | |
"fuseki_table_begin_end": { | |
"find": "^\\|\\s+|\\s+\\|$", | |
"replace": "" | |
}, | |
"fuseki_quote_resource": { | |
"find": "(<http[^>]+>)", | |
"replace": "`\\1`" | |
}, | |
"fuseki_remove_dash_lines": { | |
"find": "^-+\\s*$", | |
"replace": "" | |
}, | |
"fuseki_replace_equal_lines": { | |
"find": "=(?==|$)", | |
"replace": "-" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment