Display markdown obtained from external file

I wish to display the contents of some markdown text contained in a file. I want to use this code in lovelace:


cards:
  - type: markdown
    content: CONTENT FROM EXTERNAL FILE

Due to my setup I do not want to use a sensor to contain the value of the external file, as the content is longer than 255 characters.

How can I do this in lovelace?

Use an attribute instead of the state in a sensor. Attributes do not have the character limit.