FeatureFuel
1

Support the Rego language in Code Blocks

Source: outline/outline#4764 · opened by @crqrdotcom
Follow-up PR based on this discussion: --- Original message: Hey 👋🏽 I'd like to add support for the Open Policy Agent's [Rego language]( in Code Blocks. It's supported by both Prism.js and Refractor. I've done some local testing and seems like the following changes need to be done: • Add an entry to LANGUAGES in shared/editor/plugins/Prism.ts • Import the refractor/lang/rego package and register it in shared/editor/nodes/CodeFence.ts Additionally - if this is ultimately a requirement - the @types/refractor package has to be updated (it's [missing the types definition for refractor/lang/rego]( I've created a branch in [wtfiscrq/outline]( with the relevant changes: [main...wtfiscrq:outline:feat/rego-lang-support]( Can I open a PR with this changes? P.S.: _I'm also ok with updating [@types/refractor]( although it'll probably take a long time to get the PR approved there (never contributed to that projec…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests