This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: The Markdown viewer does not take relative paths to images(however the absolute paths work)



Tool/software: Code Composer Studio

I am trying to create a md file in a ccs project which has images with relative links. The markdown file when viewed in my standalone MD viewer i do see the document correctly with all the images coming in place. The CCS MD viewer however does not like relative paths and does not render images. What is the solution to this? (I cannot give absolute paths since this project is shipped as part of package, bitbucket repository)

  • Hi,

    I wasn't aware that CCS had a Markdown viewer. It certainly does not work well for me on a given .md file I happen to have here.

    Are you using a plugin?

    The files our team hosts in the TIRex server are markdown files wrapped in html syntax with specific extensions to acknowledge the Markdown syntax. These work very well here.

    Regards,

    Rafael

  • I think you are missing a space after # thats why the md file rendering is incorrect in CCS. I am having issues only with the rendering of images with relative paths. No i do not have any plugin out of the box CCS does have MD file viewer.

    The TIRex actually has html files which are generated from md files (using some scripting around and some templates). 

  • Hi,

    I see; this is one of the issues of Markdown - the syntax greatly varies across platforms and renderers (this index.md file renders fine in some viewers).

    Using a similar "html wrap" process, I can properly render a file inside CCS with relative paths in md syntax.

    At this point I can't necessarily imagine why the browser is not able to pick up the relative path for the images, but the "web browser" interface in CCS is not owned by us but instead entirely provided by Chromium - i.e., if you are using the option "Internal Web Browser". I tested all other browsers to no avail. The option is shown at the CCS Preferences.

    I will try to think about any additional details and report back if I find any alternative. 

    Regards,

    Rafael