Skip to content

Instantly share code, notes, and snippets.

@gbirke
Created January 21, 2015 13:07
Show Gist options
  • Save gbirke/8ce99e5219c3d50df7c0 to your computer and use it in GitHub Desktop.
Save gbirke/8ce99e5219c3d50df7c0 to your computer and use it in GitHub Desktop.
FUSEKI text tables to Markdown
[
{
"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"
]}
}
]
{
"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