aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-14 14:27:21 -0700
committerzotlabs <mike@macgirvin.com>2016-10-14 14:27:21 -0700
commit47bfb681c0595d80e01729e477ed153d5e77337a (patch)
tree4d6683e945d2678b440107f9299076e17e0e342f /doc
parent3f7f5f9429873118ee51d7c8f4513be837b8d9ef (diff)
downloadvolse-hubzilla-47bfb681c0595d80e01729e477ed153d5e77337a.tar.gz
volse-hubzilla-47bfb681c0595d80e01729e477ed153d5e77337a.tar.bz2
volse-hubzilla-47bfb681c0595d80e01729e477ed153d5e77337a.zip
add new hook doc
Diffstat (limited to 'doc')
-rw-r--r--doc/hook/markdown_to_bb.bb5
-rw-r--r--doc/hooklist.bb3
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/hook/markdown_to_bb.bb b/doc/hook/markdown_to_bb.bb
new file mode 100644
index 000000000..8af637c8c
--- /dev/null
+++ b/doc/hook/markdown_to_bb.bb
@@ -0,0 +1,5 @@
+[h2]markdown_to_bb[/h2]
+
+Called when processing markdown to bbcode conversion such as when importing Diaspora protocol source or other markdown sources. The plugin is called post conversion.
+
+The function takes one argument which is the string being converted. It may be additionally processed by the plugin.
diff --git a/doc/hooklist.bb b/doc/hooklist.bb
index d190166f0..e67f791ae 100644
--- a/doc/hooklist.bb
+++ b/doc/hooklist.bb
@@ -320,6 +320,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
[zrl=[baseurl]/help/hook/magic_auth]magic_auth[/zrl]
Called when processing a magic-auth sequence
+[zrl=[baseurl]/help/hook/markdown_to_bb]markdown_to_bb[/zrl]
+ Called when processing markdown conversion
+
[zrl=[baseurl]/help/hook/match_webfinger_location]match_webfinger_location[/zrl]
Called when processing webfinger requests