Skip to content

External scripts don't work #306

@iliakan

Description

@iliakan

Describe the bug

Adding an external script to a lesson doesn't work.

Steps to reproduce

  1. Add <script src="landing.js"></script> to content.md of a lesson.
  2. Create landing.js file with console.log(1) in the lesson folder.
  3. Run npm run dev and open the lesson in the browser.
  4. The script is not executed - the corresponding HTTP request returns 404.

Expected behavior

Astro supports scripts. I'd expect the script to work.

Platform

  • TutorialKit version: github latest.
  • OS: macOS
  • Browser: Chrome

P.S.

Adding image.png to the lesson and including it as ![](ball.png) works.

Perhaps, there's an alternative "proper" way to add an external script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions