Skip to content

Commit 7990050

Browse files
Merge pull request #264 from adamtheturtle/http-support
Add support for highlighting HTTP specs
2 parents d902555 + 6fc0682 commit 7990050

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sphinx_notion/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ def _map_pygments_to_notion_language(*, pygments_lang: str) -> CodeLang:
325325
"graphql": CodeLang.GRAPHQL,
326326
"groovy": CodeLang.GROOVY,
327327
"haskell": CodeLang.HASKELL,
328+
# This is not a perfect match, but at least JSON within the
329+
# HTTP definition will be highlighted.
330+
"http": CodeLang.JSON,
328331
"html": CodeLang.HTML,
329332
"java": CodeLang.JAVA,
330333
"javascript": CodeLang.JAVASCRIPT,

0 commit comments

Comments
 (0)