Releases: tanghoong/phpchatblock
Releases · tanghoong/phpchatblock
Minor fix css
Minor fix
Minor fix
Minor fix
0.2.35: Update
Minor fix UI
Enable Emoji & display issue
Fix @ & # detect
Fix bugs
- Allow set extraImageClass (custom image class, can be multiples class)
- Hide debugger setting (Protect content)
- Fix ShowCast() CSS (overflow issue)
- JS strip tags (Protect from user side injection)
- Fix text format detect (bold, italic, underline)
- Disable @# (regex incorrect tagging issue)
- Simplify renderRoleSide() (simplify render script)
0.2.33
Fix bugs & adding features
This version are decided only detect single colon so the rendering are always correct according to the article language.
$cui = new ChatUI([ 'allowForkScript' => 'https://editor.chatnovel.app/', // default:null 'mainCastColor' => '#198754', 'castColorMode' => 'palette', // none, random, palette 'chatHeaderSize' => 'large' // default:normal ,small, large ]); // $cui->setColon([':']); // en, default $cui->setColon([':']); // zh $cui->setNarrator(['Narrator','narrator','系统','旁白']); echo sprintf('<style>%s</style>', $cui->renderCss()); $cui->feed($sample); echo $cui->render();
Fix default colon
Fix whitespace for name
Fix linebreak to br tag
Fix link tag
Fix block chat content detection
Allow linebreak in same chat block
Allow color to main cast
Add scene tag
Add Debug tools
Add palette color chat block
Ignore script by comment
Fix first cast detection
- Fix first cast detection
Add new format & Fix bug
Fix loop with codedcolon
Fix css
Add Link render
Add Markdown heading render