Skip to content

Commit

Permalink
Update tag order
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwu5566 committed Oct 7, 2023
1 parent 4d469b4 commit 7ae7f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Ink/Internal/Footnote.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ internal struct Footnote: Fragment {
let safeUrl = url.replacingOccurrences(of: " ", with: "_")

if style == .inline {
return "<span id=\"fnref_\(safeUrl)\" class=\"fnref\"><a href=\"#fn_\(safeUrl)\">\(url)</a></span>"
return "<a href=\"#fn_\(safeUrl)\"><span id=\"fnref_\(safeUrl)\" class=\"fnref\">\(url)</span></a>"
} else {
return "<sup id=\"fnref_\(safeUrl)\" class=\"fnref\"><a href=\"#fn_\(safeUrl)\">\(url)</a></sup>"
return "<a href=\"#fn_\(safeUrl)\"><sup id=\"fnref_\(safeUrl)\" class=\"fnref\">\(url)</sup></a>"
}
}

Expand Down

0 comments on commit 7ae7f38

Please sign in to comment.