@rui.branco/jira-mcp 1.6.5 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +10 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -225,8 +225,8 @@ async function searchUser(query) {
225
225
  // Parse inline formatting: **bold**, *italic*, @mentions
226
226
  async function parseInlineFormatting(text) {
227
227
  const nodes = [];
228
- // Bold (**) must come before italic (*) in alternation
229
- const regex = /(\*\*(.+?)\*\*|\*(.+?)\*|@([A-Z][a-zA-Zà-ÿ]*(?:\s[A-Z][a-zA-Zà-ÿ]*)*))/g;
228
+ // Bold (**) must come before italic (*) in alternation, backticks for inline code
229
+ const regex = /(`(.+?)`|\*\*(.+?)\*\*|\*(.+?)\*|@([A-Z][a-zA-Zà-ÿ]*(?:\s[A-Z][a-zA-Zà-ÿ]*)*))/g;
230
230
 
231
231
  let lastIndex = 0;
232
232
  let match;
@@ -237,14 +237,17 @@ async function parseInlineFormatting(text) {
237
237
  }
238
238
 
239
239
  if (match[2] !== undefined) {
240
- // **bold**
241
- nodes.push({ type: "text", text: match[2], marks: [{ type: "strong" }] });
240
+ // `inline code`
241
+ nodes.push({ type: "text", text: match[2], marks: [{ type: "code" }] });
242
242
  } else if (match[3] !== undefined) {
243
- // *italic*
244
- nodes.push({ type: "text", text: match[3], marks: [{ type: "em" }] });
243
+ // **bold**
244
+ nodes.push({ type: "text", text: match[3], marks: [{ type: "strong" }] });
245
245
  } else if (match[4] !== undefined) {
246
+ // *italic*
247
+ nodes.push({ type: "text", text: match[4], marks: [{ type: "em" }] });
248
+ } else if (match[5] !== undefined) {
246
249
  // @Mention
247
- const user = await searchUser(match[4].trim());
250
+ const user = await searchUser(match[5].trim());
248
251
  if (user) {
249
252
  nodes.push({
250
253
  type: "mention",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rui.branco/jira-mcp",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "Jira MCP server for Claude Code - fetch tickets, search with JQL, update tickets, manage comments, change status, and get Figma designs",
5
5
  "main": "index.js",
6
6
  "bin": {