arve0 / markdown-it-attrs

Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes
MIT License
300 stars 58 forks source link

Update hasDelimiters function documentation #136

Closed tlylt closed 2 years ago

tlylt commented 2 years ago

Update the documentation of the hasDelimiters function in utils.js

The original comment mentions "middle" as a possible where value. However, all invocations of hasDelimiters in patterns.js do not pass in "middle". The function itself has since removed the "middle" case in a previous commit.

Let's update the documentation to remove the mention of "middle" to match current implementation.

The function is still working as expected as an inline case like paragraph **bold**{.red} asdf appears to now be handled correctly with where=end. Hence, this PR is purely a documentation update.

arve0 commented 2 years ago

Thank you :octocat: