我想到的一个变通方法是将原始帖子转换为 Markdown(具体怎么转,我还不确定),然后查看转换后文本中选区的开始和结束索引,再用这个索引从原始文本中提取该部分。问题在于,我需要假设没有字符发生变化,即 Markdown 字符 1:1 替换。
NateDhaliwal
(Nate Dhaliwal)
2
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| The quote feature strips out some useful HTML tags from the content | 1 | 89 | 2024 年12 月 15 日 | |
| Add custom markdown quote bbcode tags | 4 | 327 | 2025 年1 月 8 日 | |
| Get back the real "raw" data that created a post? | 33 | 3159 | 2026 年1 月 24 日 | |
| Select only the content of a list item or blockquote | 5 | 796 | 2024 年4 月 2 日 | |
| Lag in selecting text | 2 | 803 | 2022 年1 月 31 日 |