From 47bfb681c0595d80e01729e477ed153d5e77337a Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 14 Oct 2016 14:27:21 -0700 Subject: add new hook doc --- doc/hook/markdown_to_bb.bb | 5 +++++ doc/hooklist.bb | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 doc/hook/markdown_to_bb.bb (limited to 'doc') 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 -- cgit v1.2.3