summaryrefslogtreecommitdiffstats
path: root/modules/markdown
Commit message (Collapse)AuthorAgeFilesLines
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-212-543/+0
| | | | | | | | | | | | | | * add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-164-1130/+112
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* Fix rendering of external links (#2292)Ethan Koenig2017-08-132-78/+54
|
* Make short link pattern greedy (#2259)Michael Kuhn2017-08-062-1/+7
| | | Multiple links on the same line are currently not recognized correctly.
* Fix SHA1 hash linking (#2143)Roy Marples2017-07-122-6/+15
| | | | | | | | | | | | | | | | This changes the regex to look for a hash from 7 to 40 characters, to match the use of abbreviated hash lookups in both git and github. The restriction of not being a pure number is also removed because 1234567 is now considered a valid abbreviated hash, as is deadbeef. A note has been added to the top of the code to state that the literal regex match is fine, but no extra validation is currently performed so some false positives are expected. A future change could ensure that the hash exists in the repository before rendering it as a link, although this might incur a slight performance penalty. Reverts part of commit 4a46613 and fixes #2053.
* Fix import orderEthan Koenig2017-07-061-4/+4
|
* Relative URL testsEthan Koenig2017-07-061-0/+4
|
* Fix wiki preview linksEthan Koenig2017-07-062-40/+43
|
* Fix rendering of issue checkboxes (#1709)Ethan Koenig2017-05-121-2/+2
|
* Fix commit sha1 URL rendering in markdown (#1677)Lauris BH2017-05-052-5/+6
| | | | | | | | * Fix commit sha1 URL rendering in markdown * Add unit test for commit sha1 markdown rendering when sha1 has space before it * Change to better variable name
* Fix markdown rendering (#1530)Morlinest2017-04-241-9/+10
|
* Add markup package to prepare for org markup format (#1493)Lunny Xiao2017-04-212-37/+33
|
* fix #1501 ssh hangs caused by #1461 (#1513)Lunny Xiao2017-04-191-10/+2
|
* Sanitation fix from Gogs (#1461)Kim "BKC" Carlbäcker2017-04-133-20/+111
| | | | | | | | | | | | | | | | * Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
* fix: gofmt errors. (#1106)Bo-Yi Wu2017-03-031-10/+10
|
* Fix URL handling in the whole markdown module, improve test coverage (#1027)Andrew Boyarshin2017-02-242-151/+264
| | | | | Amended with string to bool change in API SDK. Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
* Markdown rendering overhaul (#186)Andrew Boyarshin2017-02-142-138/+871
| | | | | | | | | | | | * Markdown rendering overhaul Cleaned up and squashed commits into single one. Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com> * Fix markdown API, add markdown module and API tests, improve code coverage Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
* Use assert in legacy unit tests (#867)Ethan Koenig2017-02-081-281/+169
|
* refactor: Remove unnecessary type conversions (#772)Bo-Yi Wu2017-01-271-1/+1
|
* Improve issue references in markdown (#471)Sandro Santilli2016-12-261-1/+34
| | | | | | | | | | * Improve issue references in markdown. (#3436) * Fix build * Fix lint * Fix comment typo
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-272-6/+6
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* fixed test build errorLunny Xiao2016-11-251-2/+2
|
* golint fixed for modules/markdownLunny Xiao2016-11-251-9/+11
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-102-4/+4
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Run goimports on the whole project (#34)Matthias Loibl2016-11-041-3/+3
| | | Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-032-4/+4
|
* Fix mention in comments like (@dblk) (#3655)v0.9.99Rémy Boulanouar2016-10-161-3/+3
| | | | | | * Fix mention in comments like (@dblk) * Better fix to avoid making link for "Hello@DblK"
* Update size of SHA to fix #3538 (#3563)Rémy Boulanouar2016-08-311-1/+1
|
* markdown: fix treating pure number as SHA1Unknwon2016-08-151-0/+5
| | | | - Detect non-exist commit and return 404 not 500
* Code clean up for new config optionsUnknwon2016-08-141-1/+1
|
* Squashed commit of the following:Richard Mahn2016-08-141-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
* Fix #3321: commit tag shortener (#3418)Thibault Meyer2016-08-111-1/+1
| | | | | | | | | | | | * Fix #3321: commit tag shortener * Check short commit * remove debug * Edit unit tests * Show 10-char short SHA
* Fix #3420: Bad commit URL generation (#3424)Thibault Meyer2016-08-101-6/+3
|
* #3107 fix mention regex does not include dashUnknwon2016-07-231-1/+1
|
* #2854 fix no mail notification when issue is closed/reopenedUnknwon2016-07-161-0/+13
|
* Stricter parsing of issue URLs and commit URLs. (#3121)Cosmin Stroe2016-06-292-67/+141
|
* Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992)Cosmin Stroe2016-04-222-12/+263
|
* Make separate string variables for spaceOdin Ugedal2016-03-151-1/+3
|
* Fix relative links in markdown filesOdin Ugedal2016-03-151-0/+1
| | | | | | Replace spaces with "%20" in "urlPrefix", before markdon processing. The spaces were causing blackfriday (markdown processor) to behave strange. This fixes #2545.
* Make markdown as an independent moduleUnknwon2016-02-201-0/+369