Skip to content

Commit

Permalink
husky test
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Jul 29, 2019
1 parent 9093f1e commit 474a7c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion book/13-begin/api/server/models/Post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function markdownToHtml(content) {
if (text.startsWith('<code>@#')) {
return `${text.replace('<code>@#', '<code>@')} `;
}

return `
<a target="_blank" href="${href}" rel="noopener noreferrer"${t}>
${text}
Expand Down
8 changes: 4 additions & 4 deletions book/13-begin/app/components/posts/PostEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ class PostEditor extends React.Component<MyProps, MyState> {
renderer.link = (href, title, text) => {
const t = title ? ` title="${title}"` : '';

if (text.startsWith('<code>@#')) {
return `${text.replace('<code>@#', '<code>@')} `;
}
if (text.startsWith('<code>@#')) {
return `${text.replace('<code>@#', '<code>@')} `;
}

return `
<a target="_blank" href="${href}" rel="noopener noreferrer"${t}>
${text}
Expand Down

0 comments on commit 474a7c4

Please sign in to comment.