Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji are captured inside URLs #23

Open
julianlam opened this issue Nov 23, 2022 · 0 comments
Open

Emoji are captured inside URLs #23

julianlam opened this issue Nov 23, 2022 · 0 comments

Comments

@julianlam
Copy link

julianlam commented Nov 23, 2022

Input markdown:

— *![alt text](https://localhost:4567/some/url)*

Output ADF:

{                                                                                                                                                      
  "type": "doc",                                                                                                                                       
  "content": [                                                                                                                                                
    {                                                                                                                                                  
      "type": "paragraph",                                                                                                                             
      "content": [                                                                                                                                     
        {                                                                                                                                              
          "type": "text",                                                                                                                              
          "text": "— "                                                                                                                                 
        },                                                                                                                                             
        {                                                                                                                                              
          "type": "text",                                                                                                                              
          "text": "[alt text](http",                                                                                                                 
          "marks": [                                                                                                                                   
            {                                                                                                                                          
              "type": "em"                                                                                                                             
            }                                                                                                                                          
          ]                                                                                                                                            
        },                                                                                                                                             
        {                                                                                                                                              
          "type": "emoji",                                                                                                                             
          "attrs": {                                                                                                                                   
            "shortName": "//localhost"                                                                                                                 
          }                                                                                                                                            
        },                                                                                                                                             
        {                                                                                                                                              
          "type": "text",                                                                                                                              
          "text": "4567/some/url)"                                                                                                                 
        }                                                                                                                                              
      ]                                                                                                                                                
    }                                                                                                                                                  
  ],                                                                                                                                                   
  "version": 1                                                                                                                                         
}  

Matcher should avoid URLs in image or link syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant