Code Monkey home page Code Monkey logo

Comments (7)

dashed avatar dashed commented on May 18, 2024

Do you use an application that resolves url links targeting *.md files?

from wintersmith.

fidian avatar fidian commented on May 18, 2024

Yes, I use it for documentation on projects at work. It serves up the markdown as HTML, but since the URL contains "path/to/file.md", the *.md links work fine.

from wintersmith.

jnordberg avatar jnordberg commented on May 18, 2024

As of 2.0 you can write a generator plugin that adds the md files to the tree.

from wintersmith.

fidian avatar fidian commented on May 18, 2024

Can you explain what this means to me? I'm looking to write links with [some link](page.md) and have it translated into HTML as <a href="page.html">some link</a>. Your description of a generator plugin adding md files to the tree sounds like links to .md files would work, which is the flip side of what I was seeking.

Is there documentation on this somewhere?

from wintersmith.

fidian avatar fidian commented on May 18, 2024

Updated my above comment to escape the markdown and HTML examples. Unless your changes address this problem, I wouldn't consider this issue resolved. Can this issue be reopened? I can't do it. My only options are to create a new issue or have someone else reopen this one.

from wintersmith.

jnordberg avatar jnordberg commented on May 18, 2024

To get the url resolving you are looking for you would have to write a plugin that handles markdown and hook in to the markdown parser to get the urls so you can rewrite them. You can subclass the default markdown page plugin, it's exposed as env.plugins.MarkdownPage also check src/plugins/markdown.cofffe and src/plugins/page.cofffe

from wintersmith.

fidian avatar fidian commented on May 18, 2024

Thanks for pointing me in the right direction.

from wintersmith.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.