Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dkundel
Copy link
Member

@dkundel dkundel commented Sep 29, 2016

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.

@loklaan
Copy link
Member

loklaan commented Sep 29, 2016

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.

@hackergrrl
Copy link
Member

hackergrrl commented Sep 29, 2016

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)

pic

I've also seen some additional odd nestedlist behaviour:

pic

@dkundel
Copy link
Member Author

dkundel commented Sep 29, 2016

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.

@loklaan
Copy link
Member

loklaan commented Oct 25, 2016

@dkundel marked-terminal@1.7.0 now supports a tab option to override the spacing. ;) Thanks for the advice above, it was easy to implement.

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.

@loklaan
Copy link
Member

loklaan commented Oct 28, 2016

@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.

@loklaan
Copy link
Member

loklaan commented Nov 15, 2016

marked-terminal@2.0.0 is out, and is helping this PR look 馃憣.

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).

@rafaelrinaldi
Copy link
Collaborator

@loklaan Need a hand with this? Got some free time next week 馃槂

@loklaan
Copy link
Member

loklaan commented Dec 16, 2016

That'd be great @rafaelrinaldi - I dropped the ball on this one.

https://github.com/tslide/tslide/tree/marked-highlighting

@dominictarr
Copy link
Collaborator

these colors do not work for me (using the simplest terminal - xterm)
it either looks like this:
tslide-hightlight_lightbg
or like this
tslide-hightlight_darkbg

tslide really should work on the simplest terminal, including in the raw console you get before loading a window manager. I think the main problem is that the default text is coloured, but I think the main text should be the default colour, and apply styles to the keywords.

@dominictarr
Copy link
Collaborator

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.

@dominictarr
Copy link
Collaborator

oh, looks like need to make a PR to cardinal for a more reasonable theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants