Skip to content

Commit 9b855fa

Browse files
authored
Merge pull request #1533 from MitrahSoft/Update_categories_template
2 parents ac76dab + 0276df9 commit 9b855fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builders/html/templates/category.cfm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
<ul class="list-unstyled">
4343
<cfloop array="#local.pages#" index="local.i" item="local.page">
4444
<cfif local.pageTypeKey eq local.page.getPageType()>
45-
<li>[[#htmleditformat(local.page.getId())#]] #htmleditformat( getMetaDescription(local.page, local.page.getBody()) )#</li>
45+
<cfset desc = reReplace(getMetaDescription(local.page, local.page.getBody()), "\s*##{1,6}\s*", " ", "all")>
46+
<li>[[#htmleditformat(local.page.getId())#]] #_markdownToHtml(htmleditformat(desc))#</li>
4647
</cfif>
4748
</cfloop>
4849
</ul>

0 commit comments

Comments
 (0)