-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
markdown
- **[pica](https://nodeca.github.io/pica/demo/)** - high quality and fast image
resize in browser.
output:
]8;;https://nodeca.github.io/pica/demo/pica]8;; - high quality and fast image
expected output:
- pica (https://nodeca.github.io/pica/demo/) - high quality and fast image resize in browser.
code:
const blessed = require("blessed");
const marked = require("marked");
const TerminalRenderer = require("marked-terminal");
marked.setOptions({
// Define custom renderer
renderer: new TerminalRenderer()
});
var screen = blessed.screen({
smartCSR: true
});
const markdown = blessed.box({
top: 0,
left: 0,
width: "100%",
height: "95%",
border: {
type: "line"
},
style: {
fg: "white",
bg: "black",
border: {
// fg: "#f0f0f0"
},
hover: {
// bg: "green"
}
}
});
markdown.setContent(
marked(`- **[pica](https://nodeca.github.io/pica/demo/)** - high quality and fast image
resize in browser.`)
);
screen.append(markdown);
screen.render();
screen.key(["escape", "q", "C-c"], function(ch, key) {
return process.exit(0);
});
please help
UPDATE, found the issue:
this is parsed markdown file from 1.5.0, with EXPECTED OUTPUT
�[0m
* �[1m�[34mpica (�[34m�[4mhttps://nodeca.github.io/pica/demo/�[24m�[34m)�[39m�[22m - high quality and fast image
resize in browser.�[0m
and this is from 3.3.0 with UNEXPECTED OUTPUT:
* �[0m�[1m�[34m�]8;;https://nodeca.github.io/pica/demo/��[34m�[4mpica�[24m�[34m�]8;;��[39m�[22m - high quality and fast image�[0m
�[0m resize in browser.�[0m
Reactions are currently unavailable