old_contents: import Remarkable from 'remarkable';
  
  const markdown = (text) => {
    var md = new Remarkable();
    return {
      __html: md.render(text)
    };
  };
  
  
  const Event = ({ title, start_time, end_time, content, eventClickHandler, index, active }) => {
    const classes = (index === active) ? 'cal-event-content-active' : '';
  
    return (
      <div onClick={ () => { eventClickHandler(index); } } className="cal-event" id={`event-${index}`}>
        <div className="cal-event-indicator"></div>
  
        <div className="cal-event-header">
          <p className="cal-event-date">{start_time.toTimeString().substr(0, 5)}</p>
          <h3 className="cal-event-title">{title}</h3>
        </div>
  
        <p className={`cal-event-content ${ classes }`} dangerouslySetInnerHTML={markdown(content)}/>
        <p className={`cal-event-content ${ classes } cal-event-endtime`}>Antatt sluttidspunkt: {end_time.toTimeString().substr(0, 5)}</p>
      </div>
    );
  };
  
  export default Event;
  
new_contents: import Remarkable from 'remarkable';
  
  const markdown = (text) => {
    var md = new Remarkable();
    return {
      __html: md.render(text)
    };
  };
  
  
  const Event = ({ title, start_time, end_time, content, eventClickHandler, index, active }) => {
    const classes = (index === active) ? 'cal-event-content-active' : '';
  
    return (
      <div className="cal-event" id={`event-${index}`}>
        <div className="cal-event-indicator"></div>
  
        <div onClick={ () => { eventClickHandler(index); } } className="cal-event-header">
          <p className="cal-event-date">{start_time.toTimeString().substr(0, 5)}</p>
          <h3 className="cal-event-title">{title}</h3>
        </div>
  
        <p className={`cal-event-content ${ classes }`} dangerouslySetInnerHTML={markdown(content)}/>
        <p className={`cal-event-content ${ classes } cal-event-endtime`}>Antatt sluttidspunkt: {end_time.toTimeString().substr(0, 5)}</p>
      </div>
    );
  };
  
  export default Event;
  
subject: Fix bug: clicking on links inside events not working