-
- Downloads
Hook up the updated `WikiLinkFilter` to the wiki controllers.
- Need to pass in a `page_slug` to the filter, so it can rewrite based on the current page (all links are rewritten to the level of the app root). - The earlier `markdown_preview` endpoint was at the level of the wiki. We need to know the current page (for rewriting, as above), so this commit moves the endpoint to the level of a wiki page. - Fix all tests
Showing
- app/controllers/projects/wikis_controller.rb 1 addition, 1 deletionapp/controllers/projects/wikis_controller.rb
- app/helpers/gitlab_markdown_helper.rb 1 addition, 1 deletionapp/helpers/gitlab_markdown_helper.rb
- app/views/layouts/project.html.haml 2 additions, 2 deletionsapp/views/layouts/project.html.haml
- config/routes.rb 1 addition, 1 deletionconfig/routes.rb
- features/steps/project/wiki.rb 2 additions, 2 deletionsfeatures/steps/project/wiki.rb
- spec/features/markdown_spec.rb 2 additions, 1 deletionspec/features/markdown_spec.rb
- spec/helpers/gitlab_markdown_helper_spec.rb 2 additions, 1 deletionspec/helpers/gitlab_markdown_helper_spec.rb
- spec/support/markdown_feature.rb 4 additions, 0 deletionsspec/support/markdown_feature.rb
Loading
Please register or sign in to comment