pawamoy / pawamoy/markdown-exec

Hyperlinks to files in `tree` mode

Open
#79 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature insiders
Dominant language
Python
Stars
174
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Discussed in https://github.com/pawamoy/markdown-exec/discussions/78

Originally posted by mflova February 24, 2025
Let's say I have a code block like this:

```tree
(file.csv)[file.csv]
```

Would there be a way to attach a link to this file? The only way I can think about is with annotations via # (1)1. But inside there I would just write a message saying "LINK", which makes it quite repetitive if multiple files are present. Is there an easier way? Thanks!

Contributor guide

Open the contributing guide

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

Start by reading Discussion 78 and locating the implementation for tree blocks. Reproduce the (file.csv)[file.csv] example, then determine how file entries and links are currently rendered. Done means tree entries can express links without requiring repetitive annotations.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, python
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.