-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements suggestion #1
Comments
You can use this weird looking code: $.terminal.defaults.formatters = [
[/!\[([^\]]+)\]\(([^)]+)\)/, function(_, text, url) {
return '[[@;;;;' + url + ']' + text + ']';
}],
[/\[([^\]]+)\]\(([^)]+)\)/, function(_, text, url) {
return '[[!;;;;' + url + ']' + text + ']';
}],
[/#+\s+(.*)/, '[[b;#fff;]$1]'],
$.terminal.nested_formatting
] It's list of regular expressions and replacements that will format basic markdown when you echo, like in your portfolio. (link, headers and images) You can add command that will use options to display Markdown or html (by using option to echo PS: you have error in markdown this is not valid:
|
Oh, you meant formatter in the terminal, right? Because currently I use Showdownjs to format the markdown, so I was confused at first. I totally forgot that your terminal supports custom formatters, that would actually be better, one less dependency. Thanks, I'll get right to it!
I thought about this as well before I started making it, but then I got caught up in the terminal and styling the top taskbar that I kinda forgot.
This one is something I'm not looking forward to... Dropdowns were one of the first thing I wanted to do on this project, but then I looked at how much stuff there is in the macOS Finder menus and postponed it for later. But I definitely want to add them at some point :D Anyways, thanks for your suggestions and your help with the formatter! And also for having such an amazing plugin! |
Oh and about the image, are you sure it's wrong? It looks fine to me. I copied the code from the Markdown Cheatsheet |
Oh, I was wrong, so the formatter need to be changed a bit. To have title it require little bit more work, but it's also possible with terminal formatters. |
Here is list of improvements that you can add to the app:
The text was updated successfully, but these errors were encountered: