Skip to content

Snippet files aren't found when not one of the default extensions #58

Description

@shimizust-zz

I'm trying to use this library for displaying java and bash code snippets. I followed the documentation to download a custom version of highlight.js to support these file types. However, this library will still only display code snippets from the default file types (js|ts|coffee|html|hbs|md|css|sass|scss|less|emblem|yaml).

It seems the problem lies in snippet-finder.js findFiles() method, which has a list of supported default extensions. Adding 'java' and 'sh' to the list of extensions allows the library to display java and bash code.

Is there a way to configure the file types from ember-cli-build.js? Or is there an alternate workaround? Thank you

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