Skip to content

markdown 文本中一旦带有一些 emoji,解析会有问题 #629

@Alici999

Description

@Alici999

使用环境

Uniapp 打包到 web端使用。
mp-html : 2.5.0
已引入emoji 插件,引入插件后重新打包,目录中有emoji插件:
截屏2024-12-31 01 30 22

问题描述

markdown 文本中一旦带有比较多的 emoji,解析会有问题

复现方式

我给一个案例:

### 🌟 Video Metadata and Details 🌟\n\n#### **Title:** Oblivion NPC dialogue \n#### **Channel:** Galactic Memes \n#### **Published Date:** August 13, 2020 \n#### **Category:** Entertainment \n#### **Tags:** Meme, Galactic, Ryan, Ryan Reynolds \n#### **Thumbnail:**\n\n![Thumbnail](https://i.ytimg.com/vi/r_qk3CbzpoA/sddefault.jpg) \n\n#### **Statistics Overview:**\n- **Views:** 29,898,334 \n- **Likes:** 1,045,458 \n- **Comments:** 8,241 \n\n### 🚀 **Summary of Video Content**:\n---\n\n🎭 **Core Concept & Humor**:\n- The video's central theme revolves around parodying the stiff and awkward nature of NPC (non-player characters) dialogues, particularly referencing older video games like *The Elder Scrolls IV: Oblivion*. 🛡️🎮\n- It captures moments where characters in scripted games engage in sudden, janky motions or say disjointed lines, leading to hilarious, meme-worthy interactions. 🗨️😂\n\n---\n\n🎥 **Notable Highlights**:\n1. 🎬 **Actors mimic NPC behavior:** The actors perform exaggeratedly robotic gestures, pauses, and odd camera angles, creating quintessential moments reminiscent of classic NPC errors in games.\n2. 🎹 **Awkward transitions:** The addition of janky background music and abrupt talking fits the trope of chaotic RPG vibes. 🎼 \n3. 💬 **Comic essence:** Lines like, *\"Best part about shooting with Michael Bay...\"* parody unconnected or irrelevant conversations NPCs often ramble about. 😂\n\n---\n\n### 😊 **Audience Appreciation and Features**:\n- Fans of vintage games or meme culture find the humor quite on-point, appreciating the subtle satire of early-2000s NPC design.\n- The video has received significant attention, crossing 29 million views—a testament to its relatability and comedic excellence in reflecting game humor. \n\nWant to dive deeper? 🚀 Choose from these options: \n1️⃣ **Explore the impact of gaming nostalgia on meme culture.** \n2️⃣ **A breakdown of NPC behaviors from games like Oblivion.** \n3️⃣ **The video’s edit techniques & comedic timing explained.** \n\nWhich aspect should we discuss further? 🎯

👆上面的内容,使用mp-html 展示如下:
截屏2024-12-31 00 55 54

但我使用另一个组件展示👇,虽然有错,但是大致可以阅读:
截屏2024-12-31 00 58 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions