From e1e3fc2a01db1d6b4347c63ea96cb72f99b30df4 Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Fri, 16 Oct 2015 21:13:21 -0400 Subject: [PATCH] Renaming `fn_backlink_text` to `fn_backlink_html` to clarify that this is HTML content. --- Michelf/MarkdownExtra.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Michelf/MarkdownExtra.php b/Michelf/MarkdownExtra.php index 1a3e161..af079c4 100644 --- a/Michelf/MarkdownExtra.php +++ b/Michelf/MarkdownExtra.php @@ -32,11 +32,10 @@ class MarkdownExtra extends \Michelf\Markdown { public $fn_link_class = "footnote-ref"; public $fn_backlink_class = "footnote-backref"; - # Text to be displayed within footnote backlinks. The default is '↩'; the - # U+FE0E on the end is a Unicode variant selector used to prevent iOS from - # displaying the arrow character as an emoji. Note: This value is inserted - # as raw HTML, so dangerous/special characters must be pre-escaped! - public $fn_backlink_text = '↩︎'; + # Content to be displayed within footnote backlinks. The default is '↩'; + # the U+FE0E on the end is a Unicode variant selector used to prevent iOS + # from displaying the arrow character as an emoji. + public $fn_backlink_html = '↩︎'; # Class name for table cell alignment (%% replaced left/center/right) # For instance: 'go-%%' becomes 'go-left' or 'go-right' or 'go-center' @@ -1481,7 +1480,7 @@ class MarkdownExtra extends \Michelf\Markdown { $title = $this->encodeAttribute($title); $attr .= " title=\"$title\""; } - $backlink_text = $this->fn_backlink_text; + $backlink_text = $this->fn_backlink_html; $num = 0; while (!empty($this->footnotes_ordered)) {