DEV Community

Discussion on: What would you add to Markdown? ๐Ÿค”

Collapse
 
j3ffjessie profile image
J3ffJessie

I would love to be able to embed live web pages using MD. For hosting live versions of a blog post or something similar using MD would be awesome. Unless Iโ€™m missing something this isnโ€™t possible with GFM, or traditional markdown either. Would love someone to point me to the solution if itโ€™s able to be done. As I am newer to markdown I donโ€™t know everything but I have been unable to find a way to do this.

Collapse
 
thinkverse profile image
Kim Hallberg

I donโ€™t personally know if itโ€™s possible but if the service supported <iframes> I guess maybe, with GitHub and GFM I suppose you could technically do it with an action, I use the action for my GitHub profile that updates a list of my post from Dev, you could probably do something similar but with larger content.

Collapse
 
j3ffjessie profile image
J3ffJessie • Edited

Tested with iframes>at least on GitHub itโ€™s not supported. Not familiar with actions yet, have no idea how they work so Iโ€™ll have to look into them.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

iframe, script, and style tags are dangerous by default.

Only if you host your own markdown that will be able to customize and allow them.

Collapse
 
thinkverse profile image
Kim Hallberg

Isn't that why the sandbox attribute was added to <iframe>, I haven't messed with them in years but I remember there being talk about sandboxing it solved that issue. ๐Ÿค”

Thread Thread
 
j3ffjessie profile image
J3ffJessie

I will look into it. I appreciate your knowledge.

Collapse
 
csgeek profile image
csgeek

This is very specialized but I use docusaurus beta version and it allows jsx snippets and components to be added to a markdown file. It's a cool idea and really let's you extend what your simple .md files can do but not sure I'd want that for md in general.

It is cool too still be able to use simple markdown or create rich dynamic content and being able to mix and match.

Collapse
 
j3ffjessie profile image
J3ffJessie

Interesting. Wonder if that would allow for more customization on the GH profile README pages. Iโ€™ll have to look into that. Thanks for the information

Thread Thread
 
csgeek profile image
csgeek

I meant to add this initially but if you are interested reference. v2.docusaurus.io/docs/static-asset... I'm also not affiliated with them in anyways, it's a FB project. But I have been using it heavily for both community documentation and work API docs.

Thread Thread
 
j3ffjessie profile image
J3ffJessie

Thanks a ton. Definitely going to implement this in a project soon

Thread Thread
 
csgeek profile image
csgeek

If you want an example: repo uses Travis CI to deploy each commit using this config and ends up on this repo with the final result being geekbeacon.github.io/.

There's a decent discord and feel free to message me directly if you need help. I don't want to tangent too much since we were talking about markdown in the OP not docusaurus