Skip to content

Commit

Permalink
removing newline and spaces from data-template
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 committed Sep 6, 2024
1 parent 34e5239 commit f8ce1b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin/awesoMD/awesoMD.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions plugin/awesoMD/awesoMD.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions plugin/awesoMD/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ const plugin = () => {
*/
parseFrontMatter: function (content, options) {
options = this.getSlidifyOptions(options)
if (/^(\n|\s)/.test(content)) {
content = content.replace(/^(\n|\s)+/, '')
}

const parsedFrontMatter = fm(content)

Expand Down

0 comments on commit f8ce1b1

Please sign in to comment.