Help

Re: Automatically Convert Long Text to Code Block Markdown format

1866 0
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbytang
4 - Data Explorer
4 - Data Explorer

Hi folks,

I have a dataset that I want to import into a CMS for blogging.

In order for it to import and display correctly, the field in Long Text needs to be in Markdown - Code Block format so that it can hold a large chunk of HTML rich text.

Is there a way via Script or otherwise to automatically convert cells to be Markdown - Code Block by default, rather than clicking into each field, selecting all the text, and manually choosing Markdown - Code Block?

Before state:

Screenshot 2023-03-08 at 5.02.01 PM.png

 

Ideal state:

Screenshot 2023-03-08 at 5.01.46 PM.png

Greatly appreciate any help!

1 Reply 1

You could use an automation to wrap all the text in the long text fields with "```", which should do what you're looking for?

Screenshot 2023-03-10 at 9.48.19 PM.png