mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This reverts commit 95af661400.
Reason for revert: failign CI on 18.1.x branch.
PR Close #57380
This commit is contained in:
parent
95af661400
commit
bf3235cdce
2 changed files with 4 additions and 4 deletions
|
|
@ -30,8 +30,8 @@ export const renderer: Partial<MarkedRenderer> = {
|
|||
<img src="${href}" alt="${text}" title="${title}" class="docs-image">
|
||||
`;
|
||||
},
|
||||
link(this: Renderer, {href, tokens}): string {
|
||||
return `<a href="${href}">${this.parser.parseInline(tokens)}</a>`;
|
||||
link({href, text}): string {
|
||||
return `<a href="${href}">${text}</a>`;
|
||||
},
|
||||
list({items, ordered, start}) {
|
||||
if (ordered) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
import {anchorTarget} from '../helpers';
|
||||
import {Renderer, Tokens} from 'marked';
|
||||
|
||||
export function linkRender(this: Renderer, {href, title, tokens}: Tokens.Link) {
|
||||
export function linkRender(this: Renderer, {href, title, text}: Tokens.Link) {
|
||||
const titleAttribute = title ? ` title=${title}` : '';
|
||||
return `<a href="${href}"${titleAttribute}${anchorTarget(href)}>${this.parser.parseInline(tokens)}</a>`;
|
||||
return `<a href="${href}"${titleAttribute}${anchorTarget(href)}>${text}</a>`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue