Brett on 22 Jul, 2015 01:59 PM
The links in your document are going to be file links, which of course
will look for external files that don't exist. You'd have to convert
them to anchor links (#ipsum instead of Ipsum), and have them point to a
headline with an id or manual anchor links you put into each section.
This could be done with a search and replace, or a custom preprocessor
that made the necessary changes, but it's not something Marked is going
to handle internally.
As far as code, I'm not sure how you're currently inserting it, but if
you use <<() syntax, it's going to treat the contents of the imported
file as code, and not recognize any import syntax in that document. It's
designed to import actual code files (like "example.js") and create a
code block with the contents. If the code is already in a Markedown file
and has fenced or indented code blocks, just import it as a regular file