stable
Clone or download
Read-only
Move syntax highlighting from git to core, so that tracker can have pretty code blocks too. Enter some markdown content in an artifact with fenced code block in a given language. Submit and stay. ➡️ Code block should have syntax highlighting, like ingit service. Closes request #20075: Syntax highlights fenced code blocks in artifacts Change-Id: If235a4ae96450bb9dfc8b64c88d2d17814f0d34e
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayer.php | +7 | −1 | Go to diff View file |
M | plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayerBuilder.php | +9 | −0 | Go to diff View file |
M | plugins/git/include/GitPHP/controller/Controller_Blob.php | +1 | −1 | Go to diff View file |
M | plugins/git/include/GitPHP/controller/Controller_Tree.php | +1 | −1 | Go to diff View file |
M | plugins/git/package-lock.json | +0 | −46 | Go to diff View file |
M | plugins/git/package.json | +0 | −1 | Go to diff View file |
M | plugins/git/webpack.common.js | +1 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/CodeBlockFeaturesOnArtifact.php | +10 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Renderer/EditRenderer.class.php | +16 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Text.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset_Comment.class.php | +1 | −1 | Go to diff View file |
R | src/common/Markdown/BlockRenderer/MermaidBlockRenderer.php | Go to diff View file | ||
M | src/common/Markdown/CodeBlockFeatures.php | +15 | −0 | Go to diff View file |
M | src/common/Markdown/CodeBlockFeaturesInterface.php | +2 | −0 | Go to diff View file |
M | src/common/Markdown/CommonMarkInterpreter.php | +3 | −3 | Go to diff View file |
M | src/package-lock.json | +52 | −0 | Go to diff View file |
M | src/package.json | +2 | −0 | Go to diff View file |
A | src/scripts/syntax-highlight/index.ts | +159 | −0 | Go to diff View file |
R | plugins/git/themes/BurningParrot/syntax-highlight.scss | Go to diff View file | ||
M | src/webpack.common.js | +2 | −0 | Go to diff View file |
R | tests/unit/Tuleap/Markdown/BlockRenderer/MermaidBlockRendererTest.php | Go to diff View file |