diff --git a/docs/USING_PRO.md b/docs/USING_PRO.md index a55960f51e..478b9215b4 100644 --- a/docs/USING_PRO.md +++ b/docs/USING_PRO.md @@ -388,7 +388,7 @@ An **inline-level** extension will be handled inside each block-level token, bef
start(string src)
A function that returns the index of the next potential start of the custom token. -The index can be the result of a src.match().index, or even a simple src.index(). Marked will use this function to ensure that it does not skip over any text that should be part of the custom token.
+The index can be the result of a src.match().index, or even a simple src.indexOf(). Marked will use this function to ensure that it does not skip over any text that should be part of the custom token.
tokenizer(string src, array tokens)
A function that reads string of Markdown text and returns a generated token. The token pattern should be found at the beginning of the src string. Accordingly, if using a Regular Expression to detect a token, it should be anchored to the string start (`^`). The tokens parameter contains the array of tokens that have been generated by the lexer up to that point, and can be used to access the previous token, for instance.