Unknwon
761bb3cf53
modules/markup: protect sanitizer from possible modification
...
Only expose public APIs for 'Sanitize' and 'SanitizeBytes' to
eliminate unintentional modifications to sanitizer policy. Also
use 'sync.Once' to make sure multiple calls of 'NewSanitizer' is
safe (although should never happen, but this is a better way).
8 years ago
Unknwon
c1c269d9ef
modules: rename markdown -> markup
...
To further support more markup languages (e.g. Org-mode, AsciiDoc,
reStructuredText), the name 'markdown' is inappropriate.
This is the first step towards more markup language support.
8 years ago
Unknwon
b06f299748
webhook: add fork event
8 years ago
Unknwon
beea014343
template: add more icons for news feed
8 years ago
Unknwon
1083c0cd9a
admin/config: display repository related settings ( #3816 )
8 years ago
Unknwon
f97b250509
Security: prevent XSS attach on wiki page
...
Reported by Miguel Ángel Jimeno.
8 years ago
Mourad Boufarguine
59981b8818
Enable syntax highlighting for CMakeLists.txt files #2199 ( #4130 )
8 years ago
Unknwon
eb66060cd7
log: start using gopkg.in/clog.v1
8 years ago
Unknwon
8cb903fbbb
Fix unexpected rendering of README when it is not in Markdown
...
This patch also handles case when a file name looks like README
but is not a text file (e.g. image, PDF).
8 years ago
Unknwon
67380cf47b
Minor code fix
8 years ago
LefsFlare
39fdb0f9c4
Fixed 404 caused by unexpected question mark ( #3668 )
...
This fixes 404 caused when creating new files or wiki pages with question marks.
8 years ago
Thibault Meyer
bc902b8f74
Feature #3492 : Add option to hide footer load times ( #3562 )
...
* Add option to hide footer load times
* Rename option variable + minor changes
8 years ago
Unknwon
643142acab
Web editor: support upload files
8 years ago
Unknwon
13c106af77
label: adjust forecolor boundary
8 years ago
Unknwon
a00c932bbc
General code quality improvement
8 years ago
Andrey Nering
dbed39ba05
On showing diff/file, use the tab_width specified on .editorconfig, if any ( #3241 )
...
Closes #3182
8 years ago
Andrey Nering
25b23c4bc9
Do not show non-image attachment in a <img> tag. Fixes #3215 ( #3311 )
8 years ago
Unknwon
f70343660d
Little code refactoring
8 years ago
Unknwon
46e96c008c
Use struct for UI settings
8 years ago
Unknwon
971e2c3bd6
Upgrade octicon to 4.3.0
8 years ago
Unknwon
ac53bb593d
#2878 print error of JSON unmarshal and always returns a valid object
9 years ago
Nikko Miu
9a43fcb61c
Changed EscapePound function with string replace function
9 years ago
Unknwon
58f0c68151
Some minor changes
9 years ago
Unknwon
414eb22ef9
#1597 fix activitity feeds for pull requests
9 years ago
Unknwon
912f7b51e9
#1821 add actions for close and reopen issues
9 years ago
Unknwon
d5a3021a7d
Make markdown as an independent module
9 years ago
Andrey Nering
e40d94bb4f
Implementing the "theme-color" meta tag.
...
Used by Android >= 5.0 to make the top bar colored.
Reference: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
9 years ago
Andrey Nering
2bfb8bb5fd
Enable sintax highlighting on diff view. Close #733
9 years ago
Kim "BKC" Carlbäcker
1ab8a60d73
Not working, but slightly better...
9 years ago
Kim "BKC" Carlbäcker
3a9fd81f59
Custom URL-Schemas for Markdown
9 years ago
Unknwon
4993ab1a76
#2185 fall back to use custom chardet lib
9 years ago
Unknwon
44637f03cc
#2282 fast detection of utf-8
9 years ago
Unknwon
85af36332b
#2282 fix utf-8 recognized as windows-1252
9 years ago
Unknwon
1e7e092992
#2103 Ability to map extensions for syntax highlighting in config
9 years ago
Unknwon
6673dcb038
#2103 #2181 improvments of highlight class name
9 years ago
Unknwon
ea375c0dcc
new template func
9 years ago
Unknwon
95f9c85bcc
#2185 use Go sub-repo to detect encoding
9 years ago
Adam Strzelecki
e2ca53029e
Render commit msg as header + verbatim description
...
Most commit in Git are expected to follow standard of single header line,
followed by description paragraphs, separated by empty line from previous block.
Previously Gogs were treating everything as single header. Now we are trying to
render only first line as header, but following lines (description chunks) as a
verbatim.
9 years ago
Unknwon
e538ff2770
fix #1829 and fix #890
9 years ago
Unknwon
7f9598141b
fix #2020
9 years ago
Unknwon
b2fb7e3fd2
more HTTP clone word fix
9 years ago
Unknwon
efaf60ba5a
fix #2013
9 years ago
Unknwon
bb1fbe4e70
octicon fix in feeds
9 years ago
Unknwon
679af4ddea
clean up
9 years ago
Unknwon
1d57f0d64f
Show custom avatars in commits
9 years ago