Flamenco / stackeditpro

A version of stackedit with professional features.
19 stars 2 forks source link

Relative links #11

Closed hoclun-rigsep closed 2 years ago

hoclun-rigsep commented 2 years ago

Would be cool if these were followed within StackEditPro!

Flamenco commented 2 years ago

I am almost certain relative links work in certain scenarios, because the refactoring tool will pull out blocks and replace them with a link. .

Screen Shot 2022-03-30 at 4 28 29 PM Screen Shot 2022-03-30 at 4 30 48 PM Screen Shot 2022-03-30 at 4 28 55 PM Screen Shot 2022-03-30 at 4 29 25 PM
Flamenco commented 2 years ago

Perhaps the link only works on GitHub pages. It has been a long time since I used that feature.

Flamenco commented 2 years ago

Replace main with app in your link, and the relative link will work.

For example.

See [Hello World](/app#id=uoaZPvKvefEqy8Ui)
hoclun-rigsep commented 2 years ago

I don't consider that a relative link!

Flamenco commented 2 years ago

Why, because it uses an id instead of a path? Can you even address a single page on stackedit.io? You can use relative links when you publish pages.

hoclun-rigsep commented 2 years ago

Because to me relative link means something like "filesystem-based path relative to the file in which the link appears", and that's what it means in other contexts like for example GitHub (or just any filesystem-based web server context), where

- Submit questions to Chief Esposito. Gather them [here](questions.md).

will render a link to questions.md in the same directory. The id-based link suggested above has no meaning outside of StackEditPro.

One can of course just navigate to the target using the tree view on the left-hand side of StackEditPro's UI; I thought it might be nice if one could also click on the link in the preview pane.