Jump to content

dynamically loaded markdown

Recommended Posts

Site URL: https://empowerops.com

Hey guys,

I'm looking to create a markdown file shared/modified/maintained by my non-squarespace-user teammates that will auto-magically get loaded by visitors to a page.

My hope was that I could do a simple page with a markdown block, and then add some header-JS, such that visitors to a page would run some code to fetch the most recent version of the text, dump it into a markdown block, to be rendered by squarespace.js.

Is this possible? It occurs to me that I'm assuming squarespace does runtime processing on markdown text, such that the flow is that squarespace ships the markdown as text to the client and then invokes some javascript to render it, but this could be completely wrong. Is it possible to expose a text file (ie a markdown file) via sharepoint, keeping a relatively sane permissions scheme? 

Further, the goal is this: I want non technical people to have an easy way to edit a relatively static text document, and to keep only a single authoritative document. Can I use some tool other than javascript-synchronization tricks? Maybe I should just ask my team to modify a text block on squarespace? 

Many Thanks,

-Geoff

Link to comment
  • Replies 2
  • Views 269
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

2 hours ago, Groostav said:

Site URL: https://empowerops.com

Hey guys,

I'm looking to create a markdown file shared/modified/maintained by my non-squarespace-user teammates that will auto-magically get loaded by visitors to a page.

My hope was that I could do a simple page with a markdown block, and then add some header-JS, such that visitors to a page would run some code to fetch the most recent version of the text, dump it into a markdown block, to be rendered by squarespace.js.

Is this possible? It occurs to me that I'm assuming squarespace does runtime processing on markdown text, such that the flow is that squarespace ships the markdown as text to the client and then invokes some javascript to render it, but this could be completely wrong. Is it possible to expose a text file (ie a markdown file) via sharepoint, keeping a relatively sane permissions scheme? 

Further, the goal is this: I want non technical people to have an easy way to edit a relatively static text document, and to keep only a single authoritative document. Can I use some tool other than javascript-synchronization tricks? Maybe I should just ask my team to modify a text block on squarespace? 

Many Thanks,

-Geoff

Reading data from a file or something like this, then rendering it to your specific mardown block.

Is it what you mean?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.