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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for better highlighting. Addressing issue #15 #17
base: master
Are you sure you want to change the base?
Conversation
LGTM 馃憦 Played with it on gnome terminal and terminator. I hadn't noticed before, because I haven't given talks from a linux environment, but this has actually made tslides usable on those afore mentioned terminals. 馃槅 馃帀 Will try it on iterm2 later. |
Nice work, @dkundel! I like the colours, and how code blocks get highlighted. I did notice that lists are indented by 4 spaces horizontally and 1 vertically. This cuts down on available available space and causes many of my existing slides to wrap: (top: new, bottom: legacy) I've also seen some additional odd nestedlist behaviour: |
The indentation that you see is done by this line https://github.com/mikaelbr/marked-terminal/blob/master/index.js#L107 in their library. Unfortunately the part I can easily configure is the this.o.list() part but not the actual indentation, unless I overwrite the prototype. |
@dkundel I forked it to tslide/marked-terminal, so if you need anything else fixed try and do it there, or let me know and I can do it. Moving forward, I think this branch is nearly ready to be merged. |
@noffle Those attached images are 404'ing. As for what you mentioned... I've fixed the indentation issue (it is customisable). The vertical padding is going through a couple fixes/changes in mikaelbr/marked-terminal#27 - I wouldn't mind you weighing in here or there about what you'd prefer for tslides rendering. |
I moved @dkundel's branch into tslide/tslide incorporated the new changes from marked-terminal, but I've now realised that the 'from' branch in a PR cannot be changed... So, in the absence of dkundel I'll just create a new PR later in the week, and organise a major version release (if no one objects). |
@loklaan Need a hand with this? Got some free time next week 馃槂 |
That'd be great @rafaelrinaldi - I dropped the ball on this one. |
helpful context: I used to use light-on-dark, because it looks nice, but I switched to dark-on-light because it's more readable in daylight. |
oh, looks like need to make a PR to |
I didn't update the screenshots. I suggest you to clone my fork to actually test it out. Feedback is more than welcome 馃檪
You can switch back to the previous style of highlighting by running
tslide README.md --legacy
.