Skip to content

Commit

Permalink
Merge pull request #391 from MichaelHatherly/mh/backports
Browse files Browse the repository at this point in the history
Backports for 0.8.7
  • Loading branch information
MichaelHatherly authored Dec 28, 2016
2 parents 5148b83 + abd51aa commit 7059478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CrossReferences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ function namedxref(link::Markdown.Link, meta, page, doc)
push!(doc.internal.errors, :cross_references)
Utilities.warn(page.source, "'$text' missing a name after '#'.")
else
if length(link.text) === 1 && isa(link.text[1], Base.Markdown.Code)
if Anchors.exists(doc.internal.headers, slug)
namedxref(link, slug, meta, page, doc)
elseif length(link.text) === 1 && isa(link.text[1], Base.Markdown.Code)
docsxref(link, slug, meta, page, doc)
else
namedxref(link, slug, meta, page, doc)
Expand Down

0 comments on commit 7059478

Please sign in to comment.