Skip to content

Releases: tanghoong/phpchatblock

Minor fix css

24 Nov 05:32
Compare
Choose a tag to compare

Adjust margin & css class

Minor fix

06 Nov 16:46
Compare
Choose a tag to compare

Cannot detect 'ADVANCE'

Minor fix

06 Nov 16:13
Compare
Choose a tag to compare

Image schema
Better replacement on symbol
Dont output ADVANCE
text-center the notice
Chatblock styling

Minor fix

31 Oct 06:34
Compare
Choose a tag to compare

Hide devtools
Fix P tag and sentences rendering issue

0.2.35: Update

27 Oct 02:58
Compare
Choose a tag to compare

Minor fix UI
Enable Emoji & display issue
Fix @ & # detect

Fix bugs

26 Oct 07:49
Compare
Choose a tag to compare
  • 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

23 Oct 08:13
Compare
Choose a tag to compare

Fix loop bug
And tons of optimize...

Fix bugs & adding features

19 Oct 05:31
Compare
Choose a tag to compare

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

15 Oct 11:03
Compare
Choose a tag to compare
  • Fix first cast detection

Add new format & Fix bug

14 Oct 09:47
Compare
Choose a tag to compare

Fix loop with codedcolon
Fix css
Add Link render
Add Markdown heading render