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