Skip to content

Commit

Permalink
fix: filter angle bracket urls in markdown
Browse files Browse the repository at this point in the history
close #1410
  • Loading branch information
johnsoncodehk committed Jun 7, 2022
1 parent 3ffa721 commit e46800c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vue-typescript/src/plugins/file-md.ts
Expand Up @@ -130,6 +130,8 @@ export default function (): VueLanguagePlugin {
.replace(/\`([\s\S]*?)\`/g, match => `\`${' '.repeat(match.length - 2)}\``)
// # \<script setup>
.replace(/\\\<([\s\S]*?)\n?/g, match => ' '.repeat(match.length))
// <http://google.com>
.replace(/\<\S*\:\S*\>/g, match => ' '.repeat(match.length))
// markdown line
.replace(/\[([\s\S]*?)\]\(([\s\S]*?)\)/g, match => ' '.repeat(match.length)),
{
Expand Down

0 comments on commit e46800c

Please sign in to comment.