Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions functionList/markdown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- ==========================================================================\
|
| To learn how to make your own language parser, please check the following
| link:
| https://npp-user-manual.org/docs/function-list/
|
\=========================================================================== -->
<NotepadPlus>
<functionList>
<!-- ================================================== [ Markdown ] -->
<parser
displayName="Markdown"
id ="markdown"
>
<!-- All ATX-style headers (# through ######) -->
<function mainExpr="(?m)^\x20{0,3}\K(#{1,6})\h+([^\r\n]+?)(?:\h+#*)?\h*$">
<functionName>
<nameExpr expr=".*" />
</functionName>
</function>

<!-- Setext H1 (underlined with 'equal signs') -->
<function mainExpr="(?m)^\x20{0,3}\K[^\r\n]+(?=\h*\r?\n\x20{0,3}={3,}\h*$)">
<functionName>
<nameExpr expr=".*" />
</functionName>
</function>

<!-- Setext H2 (underlined with 'dashes') -->
<function mainExpr="(?m)^\x20{0,3}\K[^\r\n]+(?=\h*\r?\n\x20{0,3}-{3,}\h*$)">
<functionName>
<nameExpr expr=".*" />
</functionName>
</function>
</parser>
</functionList>
</NotepadPlus>
10 changes: 10 additions & 0 deletions udl-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -4019,6 +4019,16 @@
"homepage": "https://github.com/tgschultz/Npp-ziglang-UDL",
"autoCompletion": "Zig",
"autoCompletionAuthor": "generate_ac.py"
},
{
"id-name": "markdown-function-list",
"display-name": "Markdown",
"version": "2026-Aug-27",
"repository": "",
"description": "Markdown Function List - headings apper in function list",
"author": "pcpro178",
"homepage": "https://github.com/pcpro178/npp_userDefinedLanguages",
"functionList": true,
}
]
}
Loading