Merge pull request #50 from chatziko/master

Support mmark
This commit is contained in:
Josh Dzielak
2019-09-06 11:36:58 -07:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -4,6 +4,8 @@
{{- if ne (len .Content) 0 -}}
<!-- Remove the <hr /> tag generated by blackfriday for footnotes -->
{{- $content := replace .Content "<div class=\"footnotes\">\n\n<hr />" "<div class=\"footnotes\">" -}}
<!-- Support both <hr /> (blackfriday) and <hr> (mmark) -->
{{- $content := replace $content "<hr>" "<hr />" -}}
<!-- Split the processed content by <hr /> tag -->
{{- range (split $content "<hr />") -}}
<!-- Only wrap in <section> tag if not already wrapped by shortcode -->
+1
View File
@@ -8,6 +8,7 @@
{{- $markdownContent = index $markdownContent $dataPath -}}
{{- end -}}
{{- $html := $markdownContent | markdownify -}}
{{- $html := replace $html "<hr>" "<hr />" -}}
{{- $slides := split $html "<hr />" -}}
{{- range $slides -}}
{{- $scratch.Add "slides" . -}}