Skip to content

Commit

Permalink
Remove unused info arg from ob--get-reference
Browse files Browse the repository at this point in the history
This is continuation of the previous commit
676d931.
  • Loading branch information
kaushalmodi committed Nov 6, 2018
1 parent 99e7715 commit ecac30a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions ox-blackfriday.el
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,9 @@ Details: https://github.com/kaushalmodi/ox-hugo/issues/57."
code))

;;;; Get Reference
(defun org-blackfriday--get-reference (elem info)
(defun org-blackfriday--get-reference (elem)
"Return a reference for ELEM using its \"#+name\" if available.
INFO is a plist used as a communication channel.
If the ELEM has its `name' defined, the anchor is derived from it:
- If the `name' begins with \"code__\", \"tab__\", \"table__\",
Expand Down Expand Up @@ -979,7 +977,7 @@ contextual information."
;; (message "[ox-bf-table DBG] In contents: %s" contents)
(let* ((rows (org-element-map table 'table-row 'identity info))
(no-header (= (length rows) 1)) ;No header if table has just 1 row
(table-ref (org-blackfriday--get-reference table info))
(table-ref (org-blackfriday--get-reference table))
(table-anchor (if table-ref
(format "<a id=\"%s\"></a>\n" table-ref)
""))
Expand Down
4 changes: 2 additions & 2 deletions ox-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -1985,7 +1985,7 @@ and rewrite link paths to make blogging more seamless."
(format "[%s](#%s)"
description
(if (memq (org-element-type destination) '(src-block table))
(org-blackfriday--get-reference destination info)
(org-blackfriday--get-reference destination)
(org-export-get-reference destination info)))))))))
((org-export-inline-image-p link org-html-inline-image-rules)
;; (message "[ox-hugo-link DBG] Inline image: %s" raw-path)
Expand Down Expand Up @@ -2407,7 +2407,7 @@ channel."
(replace-regexp-in-string "," " " hl-lines)) ;"1,3-4" -> "1 3-4"
((numberp hl-lines)
(number-to-string hl-lines))))
(src-ref (org-blackfriday--get-reference src-block info))
(src-ref (org-blackfriday--get-reference src-block))
(src-anchor (if src-ref
(format "<a id=\"%s\"></a>\n" src-ref)
""))
Expand Down

0 comments on commit ecac30a

Please sign in to comment.