diff options
author | albert-github <albert.tests@gmail.com> | 2019-04-05 11:12:44 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-04-05 11:12:44 (GMT) |
commit | 6441903baba9afd3898fc57c4da14029498290b1 (patch) | |
tree | fc1869aff2a4695e0fccf0995aaf632e62399611 /src/markdown.cpp | |
parent | 16d025c8a08b485f5d43ade0986d716bd6aa06f8 (diff) | |
download | Doxygen-6441903baba9afd3898fc57c4da14029498290b1.zip Doxygen-6441903baba9afd3898fc57c4da14029498290b1.tar.gz Doxygen-6441903baba9afd3898fc57c4da14029498290b1.tar.bz2 |
Markdown file as internet link
See a link in case of a md file only as local link if it doesn't start with a supported protocol.
Example found was:
```
[Ansibullbot](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
```
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index dea2476..291441f 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -915,7 +915,9 @@ static int processLink(GrowBuf &out,const char *data,int,int size) { SrcLangExt lang = getLanguageFromFileName(link); int lp=-1; - if ((lp=link.find("@ref "))!=-1 || (lp=link.find("\\ref "))!=-1 || lang==SrcLangExt_Markdown) + printf("==> %d #%s#\n",isURL(link),link.data()); + printf("==> %d \n", ((lp=link.find("@ref "))!=-1 || (lp=link.find("\\ref "))!=-1 || (lang==SrcLangExt_Markdown && !isURL(link))) ); + if ((lp=link.find("@ref "))!=-1 || (lp=link.find("\\ref "))!=-1 || (lang==SrcLangExt_Markdown && !isURL(link))) // assume doxygen symbol link { if (lp==-1) // link to markdown page |