aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_markdown.less
Commit message (Collapse)AuthorAgeFilesLines
* Reindent Less to 2-space (#12602)silverwind2020-08-251-475/+475
| | | Reindent and unify codebase to 2-space indentation.
* Add loading spinners and mermaid error handling (#12358)silverwind2020-08-041-6/+16
| | | | | - Add loading spinners on editor and mermaid renderers - Add error handling and inline error box for mermaid - Fix Mermaid rendering by using the .init api
* Add mermaid JS renderer (#12334)silverwind2020-07-271-0/+8
| | | | | | | | | | | | | | | | | | | * Add mermaid JS renderer For feature parity with GitLab. Tested in files, issues, wiki, editor. arc-green only does an inversion because the renderer seems to like to render white backgrounds on boxes. Ref: https://github.com/go-gitea/gitea/issues/3340 Fixes: https://github.com/go-gitea/gitea/issues/12307 * add feature entry, switch to neutral theme, remove border * add bindFunctions support * remove unnecessary border-radius Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Shorten markdown heading anchors links (#11903)silverwind2020-06-261-63/+33
| | | | | | | | | | | | | | | | | | | | | This changes the links on headings like '# Usage' in markdown from `https://host/user/repo#user-content-usage` to just `https://host/user/repo#usage` matching GitHub and GitLab. The linked id elements still have the prefix and this behaviour matches GitHub and GitLab too, so JS is needed to scroll to the active anchor. I suspect it's like that to avoid namespace collission between user-generated content and other page content. Compatibilty for old links is included so they will continue to work. Also included are some enhancements to make the clickable area for the link icon larger and fix its color on arc-green. Fixes: https://github.com/go-gitea/gitea/issues/11896 Fixes: https://github.com/go-gitea/gitea/issues/12062
* Enable stylelint's shorthand-property-no-redundant-values (#11436)silverwind2020-05-201-1/+1
| | | | | Enabled the rule and --fix'ed issues. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Prevent 500 with badly formed task list (#11328)zeripath2020-05-111-2/+2
| | | | | Fix #11317 Signed-off-by: Andrew Thornton <art27@cantab.net>
* tweak code tags in markdown (#11000)silverwind2020-04-071-9/+1
| | | | | - remove whitespace before and after - increase horizontal padding - make blocks more apparant on arc-green
* Fix task-list checkbox styling (#10668)Alexander Scheel2020-03-081-0/+5
| | | | | | | | | | | | | | | | | | | | | * Fix task-list checkbox styling The pandoc renderer will append the class "task-list" to the ul element wrapping a li with one or more check-boxes. This allows us to select for them, removing their list-style-type property. However, goldmark and the gfm spec doesn't specify the "task-list" class name, so we can't use that to fix the issue there. Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> * Update to goldmark v1.1.25 This version adds the missing space after a checkbox. Resolves: #9656 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Disallow leading zeroes in Less (#10407)silverwind2020-02-231-5/+5
|
* Move less from public/ to web_src/ so that it will not be packeā€¦ (#8908)Lunny Xiao2019-11-121-0/+529