mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
remove the first occurrence of title in content when publishing to WP
This commit is contained in:
@@ -687,9 +687,10 @@ class NoteList extends React.Component {
|
||||
} else {
|
||||
token = `Bearer ${token}`
|
||||
}
|
||||
let contentToRender = firstNote.content.replace(`# ${firstNote.title}`, '')
|
||||
var data = {
|
||||
title: firstNote.title,
|
||||
content: markdown.render(firstNote.content),
|
||||
content: markdown.render(contentToRender),
|
||||
status: 'publish'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user