MarcoPolo / lt-markdown

Light table plugin for live editing markdown.
41 stars 4 forks source link

relative references #1

Open mastersign opened 10 years ago

mastersign commented 10 years ago

relative reference paths e.g. images in the same or a subfolder are interpreted relative to LightTable/core and not to the location of the watched markdown file

MarcoPolo commented 10 years ago

Hmm that's interesting I never even thought of doing that! I'll take a look this weekend, it's probably something node or node-webkit specific

mastersign commented 10 years ago

I am using markdown not only for README or LICENSE, instead I use it for complete documentation tasks. The transformation to HTML, DOCX and PDF is covered by pandoc. I am interested in extending showdown to support more of pandocs markdown dialect. If I can find some free time I will lokk into that. But for starters, relative paths are very helpful.

MarcoPolo commented 10 years ago

I've switched over to marked , it seems more active and tables work in it

mastersign commented 10 years ago

Looks very promising.

alficles commented 10 years ago

I have the exact same issue. If you put a <base href="/path/to/source/file" /> tag in the head, the relative links work correctly, I think. I'm unfortunately not strong enough with Closure to see where the appropriate place to insert it is.