nagaozen / markdown-it-toc-done-right

A table of contents (TOC) plugin for Markdown-it with focus on semantic and security. Made to work gracefully with markdown-it-anchor.
MIT License
133 stars 26 forks source link

FIX: typo that made browser example invalid #49

Closed Uzay-G closed 3 years ago

Uzay-G commented 3 years ago

When you load the required scripts, eg:

<script src="https://cdn.jsdelivr.net/npm/markdown-it@12.0.3/dist/markdown-it.min.js"></script>
<script src="https://unpkg.com/markdown-it-anchor/dist/markdownItAnchor.umd.js"></script>
<script src="https://unpkg.com/markdown-it-toc-done-right/dist/markdownItTocDoneRight.umd.js"></script>

The markdownItAnchor and markdownItTocDoneRight are defined as window.markdownItAnchor and window.markdownItTocDoneRight, with the i of markdownit uppercased.

This typo makes the current code fail, but this PR fixes it accordingly.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 86


Totals Coverage Status
Change from base Build 85: 0.0%
Covered Lines: 53
Relevant Lines: 53

💛 - Coveralls