Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mdhelp: fix standard links
  • Loading branch information
perexg committed Apr 15, 2016
1 parent 3944bd1 commit 1c95a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/static/app/tvheadend.js
Expand Up @@ -99,7 +99,8 @@ tvheadend.mdhelp = function(pagename) {
var parse = function(text) {
var renderer = new marked.Renderer;
renderer.link = function(href, title, text) {
if (href.indexOf(':/') === -1 && href.indexOf('#') > 1) {
var x = href.indexOf('#');
if (href.indexOf(':/') === -1 && (x === -1 || x > 1)) {
var r = '<a page="' + href + '"';
if (title) r += ' title="' + title + '"';
return r + '>' + text + '</a>';
Expand Down

0 comments on commit 1c95a19

Please sign in to comment.