Comments (10)
Is the escaping of square brackets intentional, or is it a bug that will be resolved at some point? I'm writing a plugin for wiki links, which uses square brackets. Is the expectation that I need to write an InputRule that removes escaped brackets?
Is plugin-automd now required for commonmark support? It doesn't appear to be documented, but links no longer work with the commonmark preset alone.
-
The escaped brackets is introduced by
remark
, it will add escape mark to squre bracket to make sure the brackets won't be parsed as links. -
If you really want to inseart a link instead of bracket, there're a lot of methods to do that. For example, an inputrule should be created to convert patterns like
[\w+](\w+)
into links. You can also use a shortcut to add link to the selected text. -
For plugin-automd. It tries to reparse everything in user input and it will introduce other issues. So I split it out from
preset-commonmark
to let users to decide if they need to use it. I plan to add another inputrule for links but I just didn't get time to do that. I'm working on the@milkdown/components
and@milkdown/crepe
libraries.
from milkdown.
from milkdown.
Meeting the same problem, cannot type any links.
from milkdown.
Same here.
@Saul-Mirone do you have a plan/idea how to fix this?
from milkdown.
Same issue (but trailing slash) with using Shift+Enter and then typing anything.
Edit: Found syntax-tree/mdast-util-to-markdown#45
It looks intentional for this trailing slash. Although, this is not standard markdown syntax.
from milkdown.
I'm seeing this as well. If I include a [ in the initial value, it is parsed correctly and links work. But if a [ is typed into the editor, it is escaped with \
. This means links are impossible to create in the editor, including in the Playground.
from milkdown.
I've tested that this issue was introduced in 7.3.3 and still exists in 7.3.6. Reverting to 7.3.2 resolves the problem.
from milkdown.
I've tested that this issue was introduced in 7.3.3 and still exists in 7.3.6. Reverting to 7.3.2 resolves the problem.
That part was extracted as @milkdown/plugin-automd
. You can install the plugin and enable it.
from milkdown.
Is the escaping of square brackets intentional, or is it a bug that will be resolved at some point? I'm writing a plugin for wiki links, which uses square brackets. Is the expectation that I need to write an InputRule that removes escaped brackets?
Is plugin-automd now required for commonmark support? It doesn't appear to be documented, but links no longer work with the commonmark preset alone.
from milkdown.
@Saul-Mirone
Thank you! I took your advice and added @milkdown/plugin-automd, then enabled it, which fixed the problem.
from milkdown.
Related Issues (20)
- [Bug] in the code block, if there is an emoticon package, an error will be reported HOT 1
- XSS in latest version(v7.3.5) when rendering classDiagram[Bug] HOT 4
- [Bug] preset-gfm checkboxes not working correctly HOT 3
- [Bug] Command Key 'SplitListItem' is Incorrectly Assigned to 'LiftListItem' Command
- [Bug][`preset-commonmark`] Unable to use non-paragraph elements as the first element inside a list item
- [Feature] highlight.js plugin. Open to PR? HOT 1
- [Feature] Code block supports displaying line numbers HOT 1
- [Bug] Code block can't render content if content was created with no syntax highlighting language chosen
- [Bug] Uptake @atomico/[email protected] with licensing fix HOT 1
- [Bug]Math_block does not work
- [Bug] Doesn't work with NextJS HOT 1
- [Feature] markdown link support target="_blank" HOT 1
- δΈζζζ‘£[Feature]
- [Bug] Copy ordered list, paste will become unordered list. HOT 1
- [Bug] undo/redo after scrolling doesn't show the result of the redo HOT 3
- [Bug] Links on React version don't allow you to click
- [Feature] Table Components
- [Feature] Crepe HTML Output
- [Feature] New Keymap Manager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milkdown.