Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.4.10
3.4.10
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,6 @@ gem 'sqids', '~> 0.2.2'
gem 'acts_as_list'

gem "commonmarker", "~> 2.9"

#For auto linking
gem "rinku", require: "rails_rinku"
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ GEM
reline (0.6.1)
io-console (~> 0.5)
rexml (3.4.1)
rinku (2.0.6)
rubocop (1.78.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
Expand Down Expand Up @@ -410,6 +411,7 @@ DEPENDENCIES
puma (>= 5.0)
pundit (~> 2.5)
rails (>= 8.0.2)
rinku
rubocop
rubocop-rails-omakase
selenium-webdriver
Expand Down
4 changes: 4 additions & 0 deletions app/views/projects/_project_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
display_text = display_text.to_s.strip
end


#Re-sets display_text to use auto_link if it is not markdown(ie the long paragraph thing) since the markdown already includes implemented links
display_text = !is_markdown ? auto_link(sanitize(display_text), html: { class: "font-bold underline", target: "_blank", rel: "noopener" }) : display_text

rendered_markdown = is_markdown && display_text.present? ? render_markdown(display_text) : nil
%>

Expand Down
4 changes: 4 additions & 0 deletions app/views/topics/_topic_field_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
display_text = display_text.to_s.strip
end

#Re-sets display_text to use auto_link if it is not markdown(ie the long paragraph thing) since the markdown already includes implemented links
display_text = !is_markdown ? auto_link(sanitize(display_text), html: { class: "font-bold underline", target: "_blank", rel: "noopener" }) : display_text

rendered_markdown = is_markdown && display_text.present? ? render_markdown(display_text) : nil
%>

Expand All @@ -45,6 +48,7 @@
rounded-[4px] p-5 prose prose-sm max-w-none
"
>

<% if display_text.present? %><%= rendered_markdown %><% else %><span class="text-on-surface-variant italic font-normal">No content provided</span><% end %>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading