MarkDown Document Template in a SharePoint Document Library

%3CLINGO-SUB%20id%3D%22lingo-sub-2205548%22%20slang%3D%22en-US%22%3EMarkDown%20Document%20Template%20in%20a%20SharePoint%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2205548%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20dropping%20a%20MarkDown%20document%20into%20a%20SharePoint%20Online%20document%20library%2C%20it%20works%20decently%3A%20SharePoint%20more%20or%20less%20renders%20the%20MarkDown%20and%20it's%20even%20possible%20to%20edit%20the%20file%20online%20using%20SharePoint's%20built-in%20text%20editor.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20made%20a%20MarkDown%20document%20template%20and%20added%20it%20to%20the%20%22New%22%20button.%20When%20creating%20a%20MarkDown%20document%20in%20the%20library%20this%20way%2C%20it%20doesn't%20behave%20like%20I%20hoped%20and%20expected%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20hoped%20and%20expected%3A%3C%2FP%3E%3CP%3E*%20A%20copy%20of%20the%20MarkDown%20template%20is%20created%20in%20the%20current%20folder%20in%20the%20document%20library.%3C%2FP%3E%3CP%3E...%20so%20I%20could%20open%20this%20copy%20for%20editing%20by%20SharePoint's%20built-in%20text%20editor.%3C%2FP%3E%3CP%3EIf%20the%20document%20library%20is%20synced%20with%20my%20local%20drive%2C%20I%20can%20also%20use%20my%20favorite%20editor%20to%20edit%20the%20MarkDown%20file.%3CBR%20%2F%3E(I%20secretly%20also%20hoped%20SharePoint%20would%20be%20able%20to%20parse%20MarkDown's%20metadata%2C%20but%20that%20would%20probably%20be%20too%20much%20to%20ask%20for%20-%20it%20seems%20to%20handle%20PDF%20metadata%2C%20so%20metadata%20isn't%20limited%20to%20Office%20document%20types)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20happens%3A%3C%2FP%3E%3CP%3E*%20A%20download%20dialog%20is%20opened%20to%20download%20a%20copy%20of%20the%20MarkDown%20template%20to%20my%20local%20machine.%3C%2FP%3E%3CP%3E...%20without%20any%20connection%20to%20the%20SharePoint%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20get%20the%20behavior%20I%20want%3A%20that%20a%20copy%20of%20the%20template%20is%20made%20in%20the%20document%20library%3F%3CBR%20%2F%3EI%20am%20not%20scared%20to%20do%20some%20programming%20to%20achieve%20this%20if%20needed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2205548%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Template%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMarkDown%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

When dropping a MarkDown document into a SharePoint Online document library, it works decently: SharePoint more or less renders the MarkDown and it's even possible to edit the file online using SharePoint's built-in text editor.

 

So, I made a MarkDown document template and added it to the "New" button. When creating a MarkDown document in the library this way, it doesn't behave like I hoped and expected:

 

What I hoped and expected:

* A copy of the MarkDown template is created in the current folder in the document library.

... so I could open this copy for editing by SharePoint's built-in text editor.

If the document library is synced with my local drive, I can also use my favorite editor to edit the MarkDown file.
(I secretly also hoped SharePoint would be able to parse MarkDown's metadata, but that would probably be too much to ask for - it seems to handle PDF metadata, so metadata isn't limited to Office document types)

 

What happens:

* A download dialog is opened to download a copy of the MarkDown template to my local machine.

... without any connection to the SharePoint library.

 

Is it possible to get the behavior I want: that a copy of the template is made in the document library?
I am not scared to do some programming to achieve this if needed.

0 Replies