Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
1a0a120b
Commit
1a0a120b
authored
Oct 13, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow links to other markdown pages of the form [link text](page.md)
parent
6bb9ee4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
markdown.doc
doc/markdown.doc
+1
-1
markdown.cpp
src/markdown.cpp
+7
-1
No files found.
doc/markdown.doc
View file @
1a0a120b
...
...
@@ -449,7 +449,7 @@ If a page has a label you can link to it using \ref cmdref "\@ref" as
is shown above. To refer to a markdown page without
such label you can simple use the file name of the page, e.g.
See [the other page](
@ref
other.md) for more info.
See [the other page](other.md) for more info.
\subsection md_html_blocks Treatment of HTML blocks
...
...
src/markdown.cpp
View file @
1a0a120b
...
...
@@ -850,9 +850,15 @@ static int processLink(GrowBuf &out,const char *data,int,int size)
}
else
{
if
(
link
.
find
(
"@ref "
)
!=-
1
||
link
.
find
(
"
\\
ref "
)
!=-
1
)
SrcLangExt
lang
=
getLanguageFromFileName
(
link
);
int
lp
=-
1
;
if
((
lp
=
link
.
find
(
"@ref "
))
!=-
1
||
(
lp
=
link
.
find
(
"
\\
ref "
))
!=-
1
||
lang
==
SrcLangExt_Markdown
)
// assume doxygen symbol link
{
if
(
lp
==-
1
)
// link to markdown page
{
out
.
addStr
(
"@ref "
);
}
out
.
addStr
(
link
);
out
.
addStr
(
"
\"
"
);
if
(
explicitTitle
&&
!
title
.
isEmpty
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment