From e3dd8f967fc96e3dc7805245d202d8134bb2b148 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Fri, 8 Nov 2024 19:13:37 -0700 Subject: [PATCH] docs: fix indexOf typo --- docs/USING_PRO.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.