Dmitriy Zaporozhets
ba51a1dd32
Render cross reference in issue title
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-03 11:15:00 +02:00
Vinnie Okada
b3c70d001d
Improve dashboard note view and add tests
...
Update the `#first_line_in_markdown` method so that the first line of
parsed text is displayed more reliably, and the continuation indicators
("...") are displayed in all cases where the note is truncated.
Also add Rspec tests for `EventsHelper#event_note`.
2014-10-12 23:56:56 -05:00
Vinnie Okada
5b2a42a091
Preserve link href in truncated note view
...
Notes on the dashboard views are truncated to 150 characters; this
change ensures that when a link's text is truncated it still points to
the correct URL.
2014-10-12 14:52:17 -05:00
Dmitriy Zaporozhets
1e980ffbad
Prevent 500 error on search results if description contains relative link
2014-09-23 17:56:41 +03:00
uran
02eca79ef1
Changed activity notes to display first MEANINGFUL line.
2014-09-12 14:22:15 +03:00
Dmitriy Zaporozhets
e1f141ac1a
gfm should respect @ref value when build relative links
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-08-06 12:14:53 +03:00
tbpgr
e1535eff95
Fix gitlab_markdown_helper method header typo. rquest => request.
2014-07-10 21:59:01 +09:00
Dmitriy Zaporozhets
1e673c72a1
Improve markdown parsing
...
* dont try to build links for anchors like `#title-anchor`
* dont build relative url for project with empty repo
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-26 10:13:38 +03:00
Dmitriy Zaporozhets
f881e43677
Merge pull request #7024 from skv-headless/linkto_issues_on_main_dashboard
...
links to issues on main dashboard
2014-06-11 15:02:48 +03:00
Marin Jankovski
603e04bc21
Make sure slashes are handled properly.
2014-05-26 20:43:58 +02:00
Marin Jankovski
52c3179be9
Do not replace links inside code blocks, less code for the same amount of work.
2014-05-26 20:43:58 +02:00
skv and GitLab
9c046fea67
links to issues on main dashboard
2014-05-26 13:24:21 +00:00
Marin Jankovski
f04d5bfaf6
Wiki will show relative links related to the wiki gollum repository.
2014-03-17 13:06:19 +01:00
Marin Jankovski
55e2f353d4
Link to blob instead of linking to wiki.
2014-03-17 13:05:20 +01:00
Marin Jankovski
f3ceebad42
Ignore newlines per md standard.
2014-03-14 12:33:03 +01:00
Ciro Santillli
90bdcac6b1
Blob and tree gfm links to anchors work.
...
Fixes #6046
2014-02-23 09:47:52 +01:00
Ciro Santillli
61748c993d
Headers have ids and link to their own id.
2014-02-11 16:23:33 +01:00
Dmitriy Zaporozhets
31987259e4
Fix markdown renderer
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-02-04 19:14:36 +02:00
Dmitriy Zaporozhets
97a4d8aea4
Improve code according to new gitlab_git
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-02-04 14:46:15 +02:00
Marin Jankovski
4f3876a2b6
Show images as raw and update the documentation.
2014-01-29 17:28:51 +01:00
Andrey Kumanyaev
53bdcb53ae
Fix relative links in markdown. Related to #6182
2014-01-29 17:48:59 +04:00
Marin Jankovski
16ba8fa077
Display correct paths in markdown for reference style links.
2014-01-22 15:07:29 +01:00
Marin Jankovski
e130e2f6c7
Check on fs.
2013-11-08 17:20:13 +01:00
Marin Jankovski
979ca7d6a2
Correct check.
2013-11-08 16:34:15 +01:00
Marin Jankovski
e649ea2fc5
Links in Readme in tree view.
2013-10-14 16:47:46 +02:00
Marin Jankovski
5b23a7bbb9
Cover a special case.
2013-10-10 14:29:16 +02:00
Marin Jankovski
5277ac1b15
Added comments and split the methods further.
2013-10-10 11:16:15 +02:00
Marin Jankovski
7dbbb6defe
Rename method to avoid clashes.
2013-10-09 15:01:02 +02:00
Marin Jankovski
70f828cd4b
Split.
2013-10-09 13:28:25 +02:00
Marin Jankovski
3682a0820b
Match the brackets so we don't replace the regular text.
2013-10-08 15:44:52 +02:00
Marin Jankovski
06d6f44367
Check for wiki.
2013-10-08 14:21:01 +02:00
Marin Jankovski
817399e3be
Show links with correct ref.
2013-10-08 13:07:59 +02:00
Marin Jankovski
810d90dd26
Search and replace relative links in tree/readme
2013-10-08 12:24:50 +02:00
Dan Knox
7665b1de7e
Use Gitlab Markdown for Markdown files and Gollum to render the rest.
...
This commit enables the usage of the Gitlab Markdown post processing
on all Markdown formatted files. For file types that do not contain
Markdown, it defaults to the Gollum native renderer to process the
content.
2013-03-13 23:31:08 -07:00
Dmitriy Zaporozhets
f72dc7f779
dont escape images inside links for gfm. Fixes #2701
2013-01-29 11:00:56 +02:00
Robert Speicher
496f88afe1
Escape text passed to gfm by link_to_gfm
2012-09-19 19:42:26 -04:00
Vanja Radovanović
7e2846fb57
using blank?, much shorter
2012-09-10 17:32:31 +02:00
Vanja Radovanović
8d171a8cbc
fixed commit title when commit message is an empty string and ensured that link_to_gfm helper doesn't break on nil body
2012-09-10 14:40:35 +02:00
Riyad Preukschas
9a4c22d395
Remove unnecessary check in Markdown helper
2012-09-08 01:11:32 +02:00
Robert Speicher
90f587f4ee
Move the entire gfm method to Gitlab::Markdown, which will be a module now
2012-09-05 16:06:20 -04:00
randx
aecbd313bc
Fix glm by adding id and classes to sanitize white attrs
2012-09-02 15:25:54 +03:00
randx
beb5e1bd6b
Sanitize glm helper
2012-09-01 23:35:04 +03:00
Riyad Preukschas
806695f491
Split and reformat markdown options and add refs to their docs.
...
Also add hard_wrap option.
2012-08-27 21:20:13 +02:00
Riyad Preukschas
32ae7fb616
Improve GFM code documentation
2012-08-23 20:10:06 +02:00
Robert Speicher
b039a16946
GFM refactor: Move the actual parsing to a class under the Gitlab module
2012-08-14 04:37:18 -04:00
Robert Speicher
e31a9dd253
GFM refactor: Update pattern to avoid an extra HTML entities check
2012-08-14 04:33:46 -04:00
Robert Speicher
d1d19aecde
GFM refactor: Simplify the regex pattern
...
Makes use of 'extended' patterns to add comments to the groups, and also
reduces the total number of groups to just those that are used.
2012-08-14 04:33:41 -04:00
Robert Speicher
7754189187
Fully embrace Ruby 1.9 hash syntax
...
Didn't bother with files in db/, config/, or features/
2012-08-10 18:25:15 -04:00
randx
04bad8257f
Fixed markdown tests
2012-08-08 11:52:09 +03:00
randx
6171a4d8eb
Fixed dashboard broken messages cause of glm
2012-08-03 03:28:02 +03:00