kappa-db / workshop

let's learn how to write peer-to-peer applications in javascript!

Home Page:https://kappa-db.github.io/workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix javascript syntax highlighting

ralphtheninja opened this issue · comments

When rendering the markdown files into html, the js styling doesn't work. What do you think about only using the markdown files? We can remove all the build code and just focus on writing the markdown files that already looks nice on github with respect to js style etc.

Fix the syntax highlighting in the built html

What styling isn't working? I was just leafing through the first few pages and it seems to look ok?

Html version:

Screenshot from 2022-02-05 11-37-56

Markdown version on github:

Screenshot from 2022-02-05 11-38-08

To me markdown on github simply looks better by default

Oh, the syntax highlighting?

Oh, the syntax highlighting?

Yep! It would be nice if we could get that working in the html. Either that or, just enable the markdown to be "surfable", since the links in the markdown pages point to html pages and not to markdown.

@hackergrrl Btw, I added a project board for kappa here https://github.com/orgs/kappa-db/projects/1

@ralphtheninja Full disclosure, I don't expect to have any capacity for this project any time in the near future :) So please go ahead with whatever changes you'd like to make that you feel will improve the accessibility & utility of this workshop. 💙

@ralphtheninja Full disclosure, I don't expect to have any capacity for this project any time in the near future :) So please go ahead with whatever changes you'd like to make that you feel will improve the accessibility & utility of this workshop. blue_heart

Ok. Will do my best! ❤️

@vweevers What would you use to render a markdown file with js code blocks to get a syntax highlighting similar to githubs js blocks?

EDIT: nvm, found highlight.js

Slightly better:

Screenshot from 2022-02-06 17-53-03