Help

Markdown via API - Airtable inserting backslashes between ~~ and [[

680 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Martin_Noah
5 - Automation Enthusiast
5 - Automation Enthusiast

I am updating the "File" field of a record.  The cell is a long text field with rich formatting enabled.

When I PATCH with this body:

{
  "fields": {
    "File": "~~[2022-23 letterhead doc34.docx](https://contoso.sharepoint.com/sites/ServicePlans/Shared Documents/General/Worksheets/2022-23 letterhead doc34.docx?d=w16af26ee9f084a6ba700aaa4bb4467a4)~~"
  }
}

Airtable returns the below:

"fields": {
    "File": "~~\\[2022-23 letterhead doc34.docx]\\(https://contoso.sharepoint.com/sites/ServicePlans/Shared Documents/General/Worksheets/2022-23 letterhead doc34.docx?d=w16af26ee9f084a6ba700aaa4bb4467a4)~~\n",
    ...
}

Notice the \\ before the opening bracket of the hyperlink markdown.  This breaks the markdown and results in a visually unappealing field:

F4ncpos

 

 

 

Expected behavior is a strikethrough hyperlink like so:

Link

 

Any help is much appreciated!

1 Reply 1
Martin_Noah
5 - Automation Enthusiast
5 - Automation Enthusiast

It's worth mentioning this only happens on a PATCH request.  If I am POSTing a brand new record, this works: "~~[Click here](https://togohere)~~" and it is appropriately linked and strikethrough'd.