Giter VIP home page Giter VIP logo

Comments (4)

hunyadi avatar hunyadi commented on August 14, 2024 1

Today, relative links to resources that are not exported trigger an error because there would be no matching document in Confluence for the linked entity when the document tree is published as a series of wiki pages. However, there could be a configuration option or command-line switch to suppress unmatched link errors, and emit a warning message instead.

from md2conf.

hunyadi avatar hunyadi commented on August 14, 2024 1

A new configuration option --ignore-invalid-url has been added to skip relative URLs that point to locations not synchronized with the document or document tree. These will still show up as links in Confluence but will not navigate to another place (as if they were <a href="#">...</a>). A warning message will be emitted when these invalid links are encountered.

from md2conf.

hunyadi avatar hunyadi commented on August 14, 2024 1

md2conf already has a concept of base URL so we will need to clarify semantics. Currently, base URL means the root URL of a document tree, and md2conf maintains a catalog mapping (relative) URLs to Markdown documents. This is how md2conf makes sure that every document in the tree has a corresponding exported document in Confluence. If it were not for this catalog, there could be broken links.

On the other hand, I understand that you are asking for a different type of base URL, which would only apply to links that don't map as per the URL to Markdown catalog that md2conf maintains. Instead of ignoring these URLs, you would like them to be prefixed with a configured URL prefix to turn them into absolute URLs. They would appear as absolute URLs in Confluence wiki pages.

from md2conf.

amorphina avatar amorphina commented on August 14, 2024

Hey Levente,

Sorry to reopen this but would it be better to have an argument where you can specify a base URL for all relative links.
If for example we have a --base-url=http://mywebsite.com/something/ and a link in the markdown such as [.gitlab-ci.yml](.gitlab-ci.yml) the resulting link should be something like http://mywebsite.com/something/.gitlab-ci.yml

from md2conf.

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.