LivelyKernel / LivelyKernel/lively4-core

Relative js import in markdown works differently in container and lively-markdown

Open
#410 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

comp: content effort2: medium (days) P4: nice to have type: bug
Dominant language
JavaScript
Stars
89
Forks
25
PR merge metrics
No merged PRs in 30d

Description

e.g. in .md file
```

import { something } from './../relative.js';

```

Refers to correct file in view mode in a container, but is resolved relative from `lively4url` in a lively-markdown component outside a container:

![image](https://user-images.githubusercontent.com/1829825/97086910-86bc7c80-1626-11eb-950d-43c6e82769ec.png)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the relative import from the issue's markdown example in both view mode inside a container and in a lively-markdown component outside one. Compare how each context resolves './../relative.js', then verify that both contexts resolve the import to the file relative to the markdown document.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.