On Mon, 15 Oct 2018 at 18:28, rdp via asciidoc <[email protected]> wrote: > > Hi Lex > > Thank you for studying my question. > I already tried to give a working example :-), I try to write it in another > way: > > If my AsciiDoc source has this: > link:Doc/Manual.asciidoc > it will build this URL: > https://gitlab.com/usr/prj/blob/master/Doc/Manual.asciidoc
Are you actually running Asciidoc? As far as I know Asciidoc will not generate that URL from that link directive. Asciidoc (and Asciidoctor AFAIK) generate relative links, so I suspect its your browser thats expanding it to be that path. In which case we have no control over it and no macro Asciidoc(tor) has could influence it. If you are actually running Asciidoc please post the actual raw HTML generated from the link directive, because as I said I'm not aware of how it would generate that URL and I suspect its generating a relative URL. > > Now, I search for a macro which modifies the URL and replaces /blob/ by /raw/ > Therefore I hope that there is a Text Search Replace AsciiDoc-Macro, e.g.: > > Replace:Link:Doc/Manual.asciidoc[search=/blob/;replace=/raw/] > it will build this URL: > https://gitlab.com/usr/prj/raw/master/Doc/Manual.asciidoc > > > > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
