File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,18 +151,18 @@ Generator.prototype.convertFile = function(content, _input) {
151151 var that = this ;
152152
153153 var _output = _input . replace ( ".md" , ".html" ) ;
154- var introduction = ( this . options . introduction !== undefined ? this . options . introduction . path : undefined )
154+ var introduction = ( this . options . introduction !== undefined ? this . options . introduction . path : undefined ) ;
155155 if ( _output == "README.html" || _input == introduction ) {
156156 _output = "index.html" ;
157157 }
158158 var output = path . join ( this . options . output , _output ) ;
159159 var basePath = path . relative ( path . dirname ( output ) , this . options . output ) || "." ;
160-
160+
161161 // Bug fix for issue #493 which would occur when relative-links are 2-level or more deep in win32
162162 if ( process . platform === 'win32' ) {
163163 basePath = basePath . replace ( / \\ / g, '/' ) ;
164164 }
165-
165+
166166 return this . prepareFile ( content , _input )
167167 . then ( function ( page ) {
168168 // Index page in search
Original file line number Diff line number Diff line change 1919 < li >
2020 {% if item.path %}
2121 {% if !externalLink %}
22- < a href ="{{ basePath }}/{{ item.path|mdLink }} "> {{ item.title }}</ a >
22+ < a href ="{{ basePath }}/{{ item.path|mdLink(item.level) }} "> {{ item.title }}</ a >
2323 {% else %}
2424 < a target ="_blank " href ="{{ item.path }} "> {{ item.title }}</ a >
2525 {% endif %}
You can’t perform that action at this time.
0 commit comments