3

I was trying to markdown some points and tried to highlight some important parts within documentation based on this tutorial unsuccessfully.

I could manage to run the following correctly neither in the Databricks notebook nor GoogleColab notebook:

%md

This is <span style="background-color: #FFFF00">highlighted</span>
This is <span style="color:red">red</span>

desired markdown results:

img

Mario
  • 1,631
  • 2
  • 21
  • 51
  • I am also seeing same issue with databricks notebooks – nee21 Dec 19 '22 at 23:59
  • So far credit to this [answer](https://stackoverflow.com/a/56593416/10452700), I could manage to change the color by `` instead of `` e.g., `This is red .` but still I can't change the text background color. I checked some [workaround1](https://stackoverflow.com/questions/35465557/how-to-apply-color-on-text-in-markdown), [workaround1](https://github.com/github/markup/issues/1440). [workaround3](https://stackoverflow.com/questions/11509830/how-to-add-color-to-githubs-readme-md-file). – Mario Dec 20 '22 at 01:28
  • 1
    `This is red ` does not work for me. I do not think this is supported in Databricks, but I cannot find any official documentation stating it. – David Dec 21 '22 at 01:40
  • @DavidGibson it works in *GoogleColab* notebook but not in *Databricks* notebook – Mario Dec 21 '22 at 01:42

1 Answers1

0

I have reproduced in my environment and got expected results as below in google Collab:

This is <font  color='red'> red </font>

<mark  style="background-color: lightblue">Rithwik</mark>

enter image description here

AFAIK, I couldn't find any Official Documentation on Markdown (Highlighting words) and this feature is not supported in Databricks by my understanding and i would suggest you raise a feature request.

RithwikBojja
  • 5,069
  • 2
  • 3
  • 7