Karina Kwiatek
40d99c8381
Fix NoMethodError
in FlavoredMarkdown
2023-02-19 18:26:17 +01:00
Karina Kwiatek
9988527580
Hard wrap in question markdown
2023-02-15 23:52:10 +01:00
Karina Kwiatek
062ca6e65a
Ensure hard_wrap
renderer option is respected
2023-02-15 23:51:59 +01:00
Andreas Nedbal
024127e62f
Remove connected user transformation from TwitteredMarkdown
2023-02-05 21:54:51 +01:00
Georg Gadinger
66efa5d4f4
clean up routes
...
- replace `match` with `get`/`post`/`patch`/`delete`
- format routes.rb
- rename the `show_user_{profile,question,answer}` routes to
`profile`, `question`, `answer` so `url_for` (used by Rails Admin)
works fine for these things
- also add `to_param` to the `User` model so that `url_for(some_user)`
uses the user name
2022-07-23 12:14:06 +02:00
Karina Kwiatek
bd5ec792b7
Prevent text in links from being double-escaped
2022-07-16 15:57:32 +02:00
Andreas Nedbal
c84b6a61bd
Use gsub
instead of gsub!
to not modify frozen literals
2022-01-16 22:33:48 +01:00
Andreas Nedbal
3bdca34c2d
QuestionMarkdown adjustments
...
* Using `Redcarpet::Render::StripDown` as base now
* Support for autolinks and named links in Markdown
* Named links in questions just return the actual link as text
* Fixed codestyle in files
2022-01-16 22:33:48 +01:00
Andreas Nedbal
fab007b2a2
Apply review suggestion from @nilsding
...
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-02 19:31:58 +01:00
Andreas Nedbal
48c31ebdc6
Apply review suggestion from @raccube
...
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2022-01-02 19:31:58 +01:00
Andreas Nedbal
13c397fe73
Prevent exceptions with invalid URIs
2022-01-02 19:31:58 +01:00
Andreas Nedbal
c28ecafa80
Refactor SharedMarkers::autolink
to use content_tag
2021-12-31 22:40:38 +01:00
Andreas Nedbal
02a5e7029e
Add linkfilter logic to existing renderers
2021-12-31 22:40:38 +01:00
Andreas Nedbal
67ee589b5b
Add question markup renderer
2021-12-31 22:40:38 +01:00
nilsding
0bf46a888f
added a new Markdown renderer (TwitteredMarkdown) which will be used for sharing to Twitter
2015-01-29 16:45:58 +01:00
nilsding
1d3848424d
changed regex for matching user mentions
2014-12-31 16:02:34 +01:00
nilsding
0e4d744478
added Markdown to answers
2014-12-28 19:06:49 +01:00