Skip to content

Commit

Permalink
Updated regex, adding all CJK characters and punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-kraft committed Jan 3, 2023
1 parent 351b0cb commit 4c27427
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Plugin, MarkdownPostProcessor, MarkdownPostProcessorContext } from 'obsidian'

// Regular Expression for {{kanji|kana|kana|...}} format
const REGEXP = /{((?:[\u4E00-\u9FFFㄅ-ㄩぁ-んァ-ンー〇])+)((?:\|[^ -\/{-~:-@\[-`]*)+)}/gm
const REGEXP = /{((?:[\u2E80-\uA4CF\uFF00-\uFFEF])+)((?:\|[^ -\/{-~:-@\[-`]*)+)}/gm;

// Main Tags to search for Furigana Syntax
const TAGS = 'p, h1, h2, h3, h4, h5, h6, ol, ul, table'
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-markdown-furigana",
"name": "Markdown Furigana",
"version": "1.2.3",
"version": "1.2.4",
"minAppVersion": "0.9.12",
"description": "Simple Markdown to Furigana Rendering Plugin for Obsidian.",
"author": "Steven Kraft",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-markdown-furigana",
"version": "1.2.3",
"version": "1.2.4",
"description": "Simple Markdown to Furigana Rendering Plugin for Obsidian.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 4c27427

Please sign in to comment.