ProfessionalWiki / ExternalContent

MediaWiki extension that allows embedding external content
https://professional.wiki/en/news/external-content
GNU General Public License v2.0
7 stars 4 forks source link

Add config for default Markdown rendering #37

Closed malberts closed 1 year ago

malberts commented 1 year ago

Follow-up to #30 and https://github.com/ProfessionalWiki/ExternalContent/pull/36#discussion_r1345269540

The default behavior in v1.x is to render all URLs as Markdown. In v2.x with the new code syntax highlighting there is a parameter lang for indicating that a file should be shown as code. However, a user might want to render all embedded files as code by default and instead specify only when a file should be rendered as Markdown.

AC:

JeroenDeDauw commented 1 year ago

Config is added at https://github.com/ProfessionalWiki/ExternalContent/blob/master/extension.json#L22 and should also be documented in README.md