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.
Comments
Similar requests
Add Parsers for CodeBlock for more use in CyberSecurity Sector
2 votes · 0 comments
Please reconsider bringing back Russian language support
14 votes · 0 comments
Feature Request - Synced Blocks
14 votes · 0 comments
Enhancement: Dedicated edit button for rendered code-blocks
1 vote · 0 comments
Line numbers and permalinks for code blocks
1 vote · 0 comments
No comments yet.