Replace <sup> with ^ and delete </sup> when copying markdown.

This commit is contained in:
Alex Ning 2021-04-08 00:06:35 +08:00
parent 2b0b7d93a8
commit f22b649bee

View File

@ -53,7 +53,7 @@ public class CopyTextBottomSheetFragment extends RoundedBottomSheetDialogFragmen
ButterKnife.bind(this, rootView);
String rawText = getArguments().getString(EXTRA_RAW_TEXT);
String markdownText = getArguments().getString(EXTRA_MARKDOWN);
String markdownText = getArguments().getString(EXTRA_MARKDOWN).replaceAll("<sup>", "^").replaceAll("</sup>", "");
copyRawTextTextView.setOnClickListener(view -> {
showCopyDialog(rawText);