mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix(metadata): Restore dollar signs and tremas. (#730)
Closes #626 Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
This commit is contained in:
parent
3fd1ea6d7f
commit
ebc730c0a0
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -22,6 +22,11 @@ showdown.subParser('makehtml.metadata', function (text, options, globals) {
|
|||
// double quotes
|
||||
.replace(/"/g, '"');
|
||||
|
||||
// Restore dollar signs and tremas
|
||||
content = content
|
||||
.replace(/¨D/g, '$$')
|
||||
.replace(/¨T/g, '¨');
|
||||
|
||||
content = content.replace(/\n {4}/g, ' ');
|
||||
content.replace(/^([\S ]+): +([\s\S]+?)$/gm, function (wm, key, value) {
|
||||
globals.metadata.parsed[key] = value;
|
||||
|
|
Loading…
Reference in New Issue
Block a user