mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-01 13:57:10 +01:00
Replace <sup> with ^ and delete </sup> when copying markdown.
This commit is contained in:
parent
2b0b7d93a8
commit
f22b649bee
@ -53,7 +53,7 @@ public class CopyTextBottomSheetFragment extends RoundedBottomSheetDialogFragmen
|
|||||||
ButterKnife.bind(this, rootView);
|
ButterKnife.bind(this, rootView);
|
||||||
|
|
||||||
String rawText = getArguments().getString(EXTRA_RAW_TEXT);
|
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 -> {
|
copyRawTextTextView.setOnClickListener(view -> {
|
||||||
showCopyDialog(rawText);
|
showCopyDialog(rawText);
|
||||||
|
Loading…
Reference in New Issue
Block a user