diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-14 10:20:02 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-14 10:20:02 -0500 |
| commit | e8ffe46148128e99a2fb84e7d7fc22b358d39312 (patch) | |
| tree | 76dd4fb985a229b7cb772883b859d01ece9d323f | |
| parent | 471eccd8cc70a0edcf52e4835b8c8dfd21fbeb69 (diff) | |
| download | thoughts-e8ffe46148128e99a2fb84e7d7fc22b358d39312.tar.gz thoughts-e8ffe46148128e99a2fb84e7d7fc22b358d39312.tar.bz2 thoughts-e8ffe46148128e99a2fb84e7d7fc22b358d39312.zip | |
Added HTML anchors to blog content headers
| -rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
| diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 72d7ab1..cffcf5d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb | |||
| @@ -22,7 +22,7 @@ module ApplicationHelper | |||
| 22 | def markdown(text, params = {}) | 22 | def markdown(text, params = {}) |
| 23 | options = { fenced_code_blocks: true, highlight: true, footnotes: true } | 23 | options = { fenced_code_blocks: true, highlight: true, footnotes: true } |
| 24 | 24 | ||
| 25 | html_options = {} | 25 | html_options = { with_toc_data: true } |
| 26 | if params[:restricted] | 26 | if params[:restricted] |
| 27 | html_options[:filter_html] = true | 27 | html_options[:filter_html] = true |
| 28 | end | 28 | end |
