WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Docs
Bracket doesn't support Chinese (3 posts)

  1. yzqiang
    Member
    Posted 9 months ago #

    I tried to use bracket-to-link for Chinese doc and I failed because Chinese is not supported. I read the code and found the reason.
    In file addon-wikitext.php line 41, the code is:
    $pattern = '|\[\[([a-zA-Z\s0-9\(\)\|]+?)\]\]|';
    To support Chinese, the code must be changed to:
    $pattern = '/\\[\\[(.+?)\\]\\]/';
    Then the bracket-to-link work for Chinese doc.

    http://wordpress.org/plugins/buddypress-docs/

  2. yzqiang
    Member
    Posted 9 months ago #

    And the bracket-to-link function doesn't support activity. It makes me develop another type of bracket-to-link function to work in activities.
    Why not support both activity and post together?

  3. yzqiang
    Member
    Posted 9 months ago #

    I also confirmed that bracket-to-link doesn't support common post.
    Does it only support Doc post type?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.