markdown-editable-textinput
markdown-editable-textinput copied to clipboard
Added better links creation
This PR adds the ability to set the URL directly using this package.
Hi @jesusrp98, thanks for your PR on our package. Unfortunatly however, I can't see the utility of what you did, as the user isn't prompt to set the link anywhere in the app, resulting in the link to be null (instead of having the same content for the text and the link). Can you explain what you wanted to do with this ?
@clemenceroumy I'm using this new link
parameter to more easily create the link markdown-friendly. I found that with the current implementation is a bit more finicky.
Here are some photos & code snippets about my current use:



onTap(MarkdownType.link, link: link);
FormatMarkdown.convertToMarkdown(
type,
textFieldcontroller.text,
textSelection.baseOffset,
textSelection.extentOffset,
titleSize: titleSize,
link: link,
);
Hi @jesusrp98 based on your work and what you proposed, we've done a change to the package in order to add a modal to insert a link.
The PR https://github.com/playmoweb/markdown-editable-textinput/pull/32 has been merged and will be available in the next version.
Thanks for your work and sorry for the huge delay.