Git Product home page Git Product logo

Comments (6)

ar613 avatar ar613 commented on June 8, 2024

This looks like an issue with #19

     /**
      * Handle links and convert relative locations to absolute URLs
      */
     function handleLinks($content, asciiDocRawUrl, commitHash) {
         $('a', $content).each(function () {
             if(!this.getAttribute('href').startsWith('http'))
                 this.href = getBaseUrl(asciiDocRawUrl) + this.getAttribute('href') + '?at=' + commitHash;
         });
     }

from bitbucket-asciidoc-plugin.

christiangalsterer avatar christiangalsterer commented on June 8, 2024

I just gave it a try and it worked for me using the following syntax.

==== Include Using Relative Path

include::include/include.adoc[]

==== Include Using Variables

include::{includedir}/include.adoc[]

I noticed that there is an issue with table of contents.

Can you provide an example of the link syntax you use along with the Bitbucket version.

from bitbucket-asciidoc-plugin.

syee514 avatar syee514 commented on June 8, 2024

The issue is with the table of contents where by the table of content links are not followed.
The Bitbucket version is 5.5.1.

from bitbucket-asciidoc-plugin.

christiangalsterer avatar christiangalsterer commented on June 8, 2024

thanks for the update. Will look into it to create proper links for TOC

from bitbucket-asciidoc-plugin.

christiangalsterer avatar christiangalsterer commented on June 8, 2024

A new version 3.1.1 is available on the Atlassian Marketplace

from bitbucket-asciidoc-plugin.

christiangalsterer avatar christiangalsterer commented on June 8, 2024

A new version 2.4.1 is available on the Atlassian Marketplace

from bitbucket-asciidoc-plugin.

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.