mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 23:19:39 +01:00
wiki: Fix hyperlinks from TOC to chapter headers of html files generated by wikiconvert (part 1 of issue #0028274)
git-svn-id: trunk@49318 -
This commit is contained in:
parent
5572c8e982
commit
e7139754a5
@ -236,9 +236,7 @@ begin
|
||||
if HeaderTxt<>'' then begin
|
||||
HRef:=WikiHeaderToLink(HeaderTxt);
|
||||
// add anchor
|
||||
LinkNode:=doc.CreateElement('a');
|
||||
LinkNode.SetAttribute('name', HRef);
|
||||
Page.CurDOMNode.ParentNode.InsertBefore(LinkNode, Page.CurDOMNode);
|
||||
Page.CurDOMNode.SetAttribute('id', HRef);
|
||||
// add TOC link
|
||||
LINode:=doc.CreateElement('li');
|
||||
LINode.SetAttribute('class', 'toclevel-'+IntToStr(Page.SectionLevel));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user