DEV Community

Discussion on: Dynamic Auth Redirects With PassportJS

Collapse
 
anabella profile image
anabella

Hey! Great post! :) I've been working with passport for a while and trying to understand it fully and not just "use" it.

But anyway, I'll tell you how to get syntax highlighting if you tell me how to get that Props to @itajajaja for this code alt text on code blocks.

If you do:
js codeblock example

It'll get nice JS colors which (at least for me) make it a lot easier to read. It works for CSS and HTML too. And probably others 😉

Cheers!

Collapse
 
dangolant profile image
Daniel Golant

Thanks! I can't believe i totally missed that.

Captions can be anywhere I think, you just need to wrap the statement in

. I added it to the markdown docs a while back because I would constantly struggle with re-formatting my stuff from medium.

Collapse
 
anabella profile image
anabella

If I wrap them in what 😱

You added it to the markdown docs here? I struggle too with the medium "translation" 😅

Thread Thread
 
dangolant profile image
Daniel Golant

how many L's can I take in a thread 😂

<figcaption>
Whatever you wanna write, I guess it works in comments too 
</figcaption>

It's in the "Markdown" tab of the writing guide when you draft a post (unless it was taken out)