Skip to content

Commit 17fd030

Browse files
idodeclareVladimir Kotal
authored andcommitted
Also recognize .markdown README
1 parent b3b39f6 commit 17fd030

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/list.jsp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1919
CDDL HEADER END
2020
2121
Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
22-
2322
Portions Copyright 2011 Jens Elkner.
23+
Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2424
2525
--%>
2626
<%@page errorPage="error.jsp" import="
@@ -123,7 +123,8 @@ document.pageReady.push(function() { pageReadyList();});
123123
}
124124
%>
125125
<%
126-
if (readMes.get(i).toLowerCase().endsWith(".md")) {
126+
String lcName = readMes.get(i).toLowerCase();
127+
if (lcName.endsWith(".md") || lcName.endsWith(".markdown")) {
127128
%><div id="src<%=i%>" data-markdown>
128129
<div class="markdown-heading">
129130
<h3><%= readMes.get(i) %></h3>

0 commit comments

Comments
 (0)