Implement #+LINK
This commit is contained in:
parent
47a3653d61
commit
1e36b3b46b
6 changed files with 19 additions and 0 deletions
|
@ -338,6 +338,9 @@ func (w *HTMLWriter) WriteRegularLink(l RegularLink) {
|
|||
if l.Protocol == "file" {
|
||||
url = url[len("file:"):]
|
||||
}
|
||||
if prefix := w.document.Links[l.Protocol]; prefix != "" {
|
||||
url = html.EscapeString(prefix) + url[len(l.Protocol)+1:]
|
||||
}
|
||||
description := url
|
||||
if l.Description != nil {
|
||||
description = w.WriteNodesAsString(l.Description...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue