You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2022/07/12 21:03:37 UTC

[jspwiki] 04/25: Footnote links start with #ref-, instead of #

This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git

commit 3d498669c097e884579f679d00ad9227bcdfaf85
Author: Juan Pablo Santos Rodríguez <ju...@gmail.com>
AuthorDate: Tue May 3 23:00:49 2022 +0200

    Footnote links start with #ref-, instead of #
    
    there are other types of '# links' that can be generated, for instance, '#section-' links
---
 .../src/main/java/org/apache/wiki/htmltowiki/syntax/MarkupHelper.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jspwiki-wysiwyg/src/main/java/org/apache/wiki/htmltowiki/syntax/MarkupHelper.java b/jspwiki-wysiwyg/src/main/java/org/apache/wiki/htmltowiki/syntax/MarkupHelper.java
index 0f6406eeb..4e395e395 100644
--- a/jspwiki-wysiwyg/src/main/java/org/apache/wiki/htmltowiki/syntax/MarkupHelper.java
+++ b/jspwiki-wysiwyg/src/main/java/org/apache/wiki/htmltowiki/syntax/MarkupHelper.java
@@ -41,7 +41,7 @@ public class MarkupHelper {
      * Checks if the link points to a footnote.
      */
     public static boolean isFootnoteLink( final String ref ) {
-        return ref.startsWith( "#" );
+        return ref.startsWith( "#ref-" );
     }
 
     /**