You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor markdown parsing of Image and ExplicitLink (#1323)
Create intermediate rule ExplicitLinkWithLabel that returns `{label:,
link:}`, so that Image rule does not need to re-parse rdoc link format
again.
```ruby
# Before
"[text](url)" → "{text}(url)"
"" → Image("{text}(url)") →(parse with regexp)→ "rdoc-image:url:text"
# After
"[text](url)" → ExplicitLink({ label: 'text', link: 'url' }) → "{text}(url)"
"" → Image({ label: 'text', link: 'url' }) → "rdoc-image:url:text"
```
#1322
0 commit comments