Skip to content

Commit

Permalink
fix: revert #1512
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed May 1, 2024
1 parent 8333065 commit eea2bd1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/docs/readme-updater-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,7 @@ function updateReadme (aboutMd, manifestPath, readmePath, app) {
parsedReadme.children.push(child)
})

let updatedReadmeContents = writeMarkdown(parsedReadme)

// workaround for https://github.com/syntax-tree/mdast-util-to-markdown/issues/61
updatedReadmeContents = updatedReadmeContents
.replaceAll('\\[!NOTE]', '[!NOTE]')
.replaceAll('\\[!TIP]', '[!TIP]')
.replaceAll('\\[!IMPORTANT]', '[!IMPORTANT]')
.replaceAll('\\[!WARNING]', '[!WARNING]')
.replaceAll('\\[!CAUTION]', '[!CAUTION]')
const updatedReadmeContents = writeMarkdown(parsedReadme)

fs.writeFileSync(readmePath, updatedReadmeContents, {
encoding: 'utf-8'
Expand Down

0 comments on commit eea2bd1

Please sign in to comment.