lsug / lsug-website

Source code of the London Scala User Group Website (yet to be hosted)
GNU General Public License v3.0
3 stars 20 forks source link

Add a code tag to the markup #122

Open zainab-ali opened 3 years ago

zainab-ali commented 3 years ago

Some speakers have small inline code snippets in their abstracts. These are usually references to Scala classes. For example, Jacob’s abstract references ExecutionContext and cats.effect.Timer.

We should support these through a code datatype that is converted into a html tag.

Potential Solution

This involves:

  • Adding a new markup datatype for Code in the protocol
  • Adding a decoder for this markup to the decoders. It should be similar to the strong decoder
  • Rendering the code html tag on the frontend.
  • Updating the meetup template with an example of how to use it.

    Tests

    Take a look at the tests for the strong decoder

    Prerequisites

    You should be reasonably familiar with html and basic Scala algebraic datatypes (case classes and sealed traits).

You will need to touch some fairly advanced functional patterns in the decoder, but you’ll be making very small changes.

What you'll learn

  • How to work with monad transformers
  • The basics of ScalaJS React

    Getting started

    Read our Contributor Guide to get set up.

TheOnlyIanWood commented 3 years ago

Looks interesting and I will take a stab at it.