Dmitry Verkhoturov
edfc5b9d76
Automatic fix of errors reported by golangci-lint v2
...
- Use strings.ReplaceAll
- Remove redundant internal structure names
2025-03-24 22:46:43 +01:00
Dmitry Verkhoturov and Umputun
661f042cb4
pin golangci-lint version to latest available, fix reported errors
2024-05-09 22:32:00 -05:00
Dmitry Verkhoturov and Umputun
532573fb34
fix problems reported by golangci-lint
2024-02-20 12:10:39 -06:00
Dmitry Verkhoturov
dcc7613409
allow disabling fancy HTML formatting
...
It might be necessary if the comments should preserve
original quotes instead of replacing them with angled ones.
2023-11-26 09:13:53 +01:00
Dmitry Verkhoturov and Umputun
26f82ad95c
don't allow relative links in comments
...
(url) is a text inserted by default and never an intended URL.
That additional validation will ensure that users won't post relative
links because they are rarely intended.
2023-04-09 23:30:21 -05:00
Dmitry Verkhoturov
86d059bf99
move templates from rakyll/statik to go:embed
...
There is no need for the rakyll/statik package starting with Go 1.16,
which provides us with tools for embedding files
without third-party libraries.
2022-07-29 19:07:49 +02:00
Dmitry Verkhoturov and Umputun
9c1a827685
update alecthomas/chroma and Depado/bfchroma to v2
2022-07-13 20:29:46 -05:00
Umputun and GitHub
7cdb006f81
Links rune ( #1344 )
...
* shorten links with non-latin properly
* lint: unneeded conversion
2022-04-30 12:03:52 -05:00
Umputun
e72f594134
rollback
2021-03-26 15:45:49 -05:00
Umputun
47fee90c60
post-sanitize location's url in case if stored already #927
2021-03-26 15:37:53 -05:00
Umputun
89a4677391
enforce loading=lazy att to rendered images html
2021-01-17 16:32:26 -06:00
Dmitry Verkhoturov and Umputun
d6c7e151a0
bump modules
2020-04-13 12:03:26 -05:00
1e548eb85f
Code colors (backend support) ( #590 )
...
* testing code highlight with bfchroma render
* add bfchroma vendoring
* render code htm with classes
* adjust bfchroma test cases inside formatter
* go mod tidy
* fix markdown code render tests
* adjust comment text sanitizer to permit code HTML classes
* go mod tidy
* add chroma classes list regexp
* unify gitignore entries style
Co-authored-by: Umputun <umputun@gmail.com >
2020-02-08 21:11:12 -06:00
Dmitry Verkhoturov
62c43cce77
replace blackfriday.v2 with blackfriday/v2
2020-02-07 22:15:05 +01:00
Umputun
8ddfa56b82
add unescape table processing after md parsing #354
2019-06-30 12:45:15 -05:00
Umputun
c224676ccd
enable Smartypants for md rendering
2019-06-29 21:58:50 -05:00
Umputun
acf19e73cf
minor formatting
2018-12-29 18:36:34 -06:00
Umputun and GitHub
75a1edcff3
feature/adm_mongo ( #201 )
...
* add admin akd key mongo implementations
* wire admin and key stores to mongo
* lint: wrong comment on keys store
* typos and comments corrections
* fix failed test on avatar resizer
* get rid of ineffectual assignment in test
* add tests for encoding fallback and mongo's keys & admin
* empty encode test adjusted
2018-09-09 16:59:33 -05:00
Umputun
a6277d764a
add CommentConverterFunc to simplify injection of custom converters
2018-08-18 23:09:17 -05:00
Umputun
8ed75439ee
fix typo in formatter name
2018-08-13 21:42:37 -05:00