about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-16 10:13:22 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-16 10:13:22 -0400
commit7c703edfae47e31b038f161e04f12aeeabdd2f73 (patch)
tree868397cef78f0dbb53f3fac2a4d666d4cbe052c1
parentd7dbb6519629db02447d95237ef7e8f6aa84d10a (diff)
downloadthoughts-7c703edfae47e31b038f161e04f12aeeabdd2f73.tar.gz
thoughts-7c703edfae47e31b038f161e04f12aeeabdd2f73.tar.bz2
thoughts-7c703edfae47e31b038f161e04f12aeeabdd2f73.zip
Added Markdown footnotes
-rw-r--r--app/assets/stylesheets/main/entries.scss4
-rw-r--r--app/helpers/application_helper.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/stylesheets/main/entries.scss b/app/assets/stylesheets/main/entries.scss index dd6b248..edf1706 100644 --- a/app/assets/stylesheets/main/entries.scss +++ b/app/assets/stylesheets/main/entries.scss
@@ -212,6 +212,10 @@
212 margin: 0.25em; 212 margin: 0.25em;
213 } 213 }
214 } 214 }
215
216 .footnotes {
217 font-size: small;
218 }
215} 219}
216 220
217#blog-archive { 221#blog-archive {
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5e9f0ab..a08fab1 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb
@@ -20,7 +20,7 @@ module ApplicationHelper
20 end 20 end
21 21
22 def markdown(text, params = {}) 22 def markdown(text, params = {})
23 options = { fenced_code_blocks: true, highlight: true } 23 options = { fenced_code_blocks: true, highlight: true, footnotes: true }
24 24
25 html_options = {} 25 html_options = {}
26 if params[:restricted] 26 if params[:restricted]