aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markdown/markdown_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-211-343/+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-161-482/+84
| | | | | | | | | | * 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-131-52/+26
|
* Make short link pattern greedy (#2259)Michael Kuhn2017-08-061-0/+6
| | | Multiple links on the same line are currently not recognized correctly.
* Fix SHA1 hash linking (#2143)Roy Marples2017-07-121-0/+2
| | | | | | | | | | | | | | | | 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.
* Relative URL testsEthan Koenig2017-07-061-0/+4
|
* Fix wiki preview linksEthan Koenig2017-07-061-10/+31
|
* Fix commit sha1 URL rendering in markdown (#1677)Lauris BH2017-05-051-0/+1
| | | | | | | | * 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
* Add markup package to prepare for org markup format (#1493)Lunny Xiao2017-04-211-25/+4
|
* 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-241-107/+188
| | | | | 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-141-37/+514
| | | | | | | | | | | | * 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
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-3/+3
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* fixed test build errorLunny Xiao2016-11-251-2/+2
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | - 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-031-2/+2
|
* Stricter parsing of issue URLs and commit URLs. (#3121)Cosmin Stroe2016-06-291-46/+118
|
* Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992)Cosmin Stroe2016-04-221-0/+236