Skip to content

Registration of extensions changed #2

Description

@jwt625

See Showdown CHANGELOG for detail.
So I just modified the third last line in showdown-toc.js from
if (typeof window !== 'undefined' && window.showdown && window.showdown.extensions) { window.showdown.extensions.toc = toc; }
to
if (typeof window !== 'undefined' && window.showdown && window.showdown.extension) { window.showdown.extension("showdown-toc",toc); }
and initialize the converter with option { extensions: ['showdown-toc'] }, it works.
Hope this can help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions