Commit 2775771
Change markdown rendering from blackfriday to goldmark (go-gitea#9533)
* Move to goldmark
Markdown rendering moved from blackfriday to the goldmark.
Multiple subtle changes required to the goldmark extensions to keep
current rendering and defaults.
Can go further with goldmark linkify and have this work within markdown
rendering making the link processor unnecessary.
Need to think about how to go about allowing extensions - at present it
seems that these would be hard to do without recompilation.
* linter fixes
Co-authored-by: Lauris BH <lauris@nix.lv>1 parent 0c07f1d commit 2775771
File tree
83 files changed
+13830
-6289
lines changed- modules
- markup
- common
- markdown
- mdstripper
- references
- routers/api/v1/misc
- vendor
- github.com
- russross/blackfriday/v2
- shurcooL/sanitized_anchor_name
- yuin/goldmark
- ast
- extension
- ast
- parser
- renderer
- html
- text
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
83 files changed
+13830
-6289
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| |||
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| 96 | + | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
467 | 465 | | |
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
472 | 470 | | |
473 | | - | |
474 | | - | |
475 | 471 | | |
476 | 472 | | |
477 | 473 | | |
| |||
550 | 546 | | |
551 | 547 | | |
552 | 548 | | |
| 549 | + | |
| 550 | + | |
553 | 551 | | |
554 | 552 | | |
555 | 553 | | |
| |||
0 commit comments