Commit Graph

36 Commits

Author SHA1 Message Date
Matt Baer bb008aa66c
Merge pull request #382 from Antolius/fix-post-summary-escaping
Fix escaping in post summary
2020-10-13 08:41:25 -04:00
Dami f847ade1ef Use camelCase 2020-09-09 00:01:32 -06:00
Dami 3a789f5a00 Go to next regex match if url parsing error 2020-09-08 23:59:56 -06:00
Josip Antoliš eb76faa129 Fix escaping in post summary
Unescaping post content after sanitizing it. This will prevent double
escaping when summary is rendered by html/template package which does
escaping by default.
Fixes #340
2020-09-05 01:59:44 +02:00
Dami 9b614bc922 Fix removal of query parameters on youtube embed links
This uses go's html and url parser plus regex, instead of
using only a single regex for simplicity sake. A single regex expression
might be error prone, for example, when trying to matching html entities.

Fixes #328
2020-08-07 00:05:43 -06:00
Matt Baer 849e5b8503
Merge pull request #330 from writeas/post-signatures
Support post signatures

Ref T582
2020-07-30 11:53:27 -04:00
Matt Baer 504a2a42aa
Merge pull request #329 from writeas/add-footer
Add footer and header element
2020-07-07 10:11:32 -04:00
Matt Baer a25664bb97 Support post signatures
This enables users to add a signature to all blog posts, and update it from a single location.

Requires database migration with: writefreely db migrate

Closes T582
2020-06-23 16:24:45 -04:00
CJ Eller 591bb0866c Add footer and header element 2020-06-22 20:33:52 +00:00
Matt Baer 457051106d Add u-url class and span in mention link
Ref T627
2020-02-08 13:04:23 -05:00
Matt Baer eac223158a Move remote user URL to /@/
from /mention:

Ref T627
2020-02-08 12:58:21 -05:00
Matt Baer 81edb739dd Fix mention links
by making them absolute, not relative.
2020-02-08 12:19:08 -05:00
Matt Baer 68d63d3fef Merge branch 'develop' into activitypub-mentions 2020-02-08 11:51:18 -05:00
Matt Baer 9fb8de48d4 Rename base_url to collection_url in MD API
Ref T519
2020-01-05 11:22:22 -05:00
Rob Loranger dae65b7d1f
retain output structure in response 2019-12-19 08:28:06 -08:00
Rob Loranger 26d906ae92
clean up responses and logging, change endpoint
- return an error with invalid request types
- simplify json decoding
- return error and success consistent with app conventions
- endpoint change from /api/generate/markdownify to /api/markdown
- fix nil pointer dereference when passing a base_url
2019-12-17 12:27:34 -08:00
Matt Baer a266d8e032 Update IsJSON call in handleRenderMarkdown() 2019-11-29 08:12:54 -05:00
Matt Baer 8c1bf2ddd5 Merge branch 'markdown-API' into activitypub-mentions 2019-11-28 10:31:35 -05:00
Matt Baer ae5bbd273d Fix mention URL on multi-user instances
Previously, links would go to /user/mention:@me@this.tld instead of
/mention:@me@this.tld
2019-11-27 17:54:17 -05:00
Rob Loranger d2480cb3aa
add basic API endpoint for rendering markdown 2019-10-15 15:03:45 -07:00
Michael Demetriou 99bb77153e Handles are saved in `remoteusers` while the links take you to an
intermediate page (WIP) that shows the user profile page url
2019-10-10 15:11:46 +03:00
Rob Loranger a6c1f4ae41
allow titles for abbreviation elements
this allows abbreviation elements to keep their title attributes when
containing special characters.
2019-09-18 08:21:33 -07:00
Matt Baer ca388d6536 Merge branch 'develop' into chorus 2019-09-09 17:26:40 +02:00
Rob Loranger ca957c4b6d
fix missing collection hostname
GetCollections and GetPublishableCollections now take a hostname
parameter to allow setting the collecion hostname.

All collections used in memory now have their hostname set.
2019-08-12 12:35:17 -07:00
Matt Baer ff7828c558 Link hashtags to Reader when Chorus mode enabled
instead of linking to posts only on a user's blog.

Ref T681
2019-08-07 09:40:07 -04:00
Matt Baer b0d70d9bdb Support <audio> element
This whitelists the HTML5 <audio> element and adds some basic style to
make it look nice.
2019-07-25 22:54:11 -04:00
Matt Baer 238a913ce3 Make WriteFreely spacing consistent 2019-04-11 21:33:33 -04:00
Matt Baer 32e99d0041 Fix hashes in code blocks rendered as hashtags
Previously, our hashtag parser would indiscriminately replace
hashtag-like text with hashtag HTML -- including in places it shouldn't
have, like inside code blocks. Along with the v1.7.0 changes to
writeas/saturday, this fixes that and closes #6.

As a bonus, strings of #spaceless#hashtags#in#a#row are now rendered
correctly.
2019-02-04 17:50:37 +01:00
Matt Baer ee6046bdbf
Merge pull request #43 from mrvdb/hashlink
Hashtag linking improvements
2019-02-01 14:39:01 +01:00
Matt Baer 3ae45bc156 Fix spacing around copyright notices 2018-12-31 01:05:26 -05:00
Matt Baer 1274914207 Add copyright / license notices to .go files 2018-12-24 12:45:15 -05:00
Marcel van der Boom 5856e91f84 Allow beginning of line as begin of tag as well 2018-12-04 18:26:18 +01:00
Marcel van der Boom 79a7ca750e Require hashtags to have a space before them
This improves rendering in a number of situations:

- it keeps anchor tags working
- it gives the user some control for not linking, for example in code
  blocks.

Con:
hashTags at the beginning of a line without a space won't get linked.

Workaround related to issues #42 and #6 and #33
2018-12-03 12:08:02 +01:00
Matt Baer 001fc8bb2d Fully support single-user mode
- New editor nav
- New backend nav
- Support for drafts
- Different footers on backend
2018-11-09 22:10:46 -05:00
Matt Baer 3afdd8c1b4 Add backend post handling, endpoints, rendering 2018-11-07 23:43:11 -05:00
Matt Baer 0c1e1dd57e Add data layer
This includes config changes, collections, posts, some post rendering
funcs, and actual database connection when the server starts up.
2018-10-16 22:31:27 -04:00