mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 16:56:43 +08:00 
			
		
		
		
	Merge pull request #41 from xingty/fix-telegraph
Fixed issue with <a> tags not working in Telegraph.
This commit is contained in:
		@ -402,7 +402,7 @@ class TelegraphAPI:
 | 
				
			|||||||
                    ]
 | 
					                    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if element.attrs:
 | 
					                if element.attrs:
 | 
				
			||||||
                    tag_dict["attributes"] = element.attrs
 | 
					                    tag_dict["attrs"] = element.attrs
 | 
				
			||||||
                if element.contents:
 | 
					                if element.contents:
 | 
				
			||||||
                    children = []
 | 
					                    children = []
 | 
				
			||||||
                    for child in element.contents:
 | 
					                    for child in element.contents:
 | 
				
			||||||
@ -413,7 +413,7 @@ class TelegraphAPI:
 | 
				
			|||||||
                    tag_dict["children"] = children
 | 
					                    tag_dict["children"] = children
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                if element.attrs:
 | 
					                if element.attrs:
 | 
				
			||||||
                    tag_dict["attributes"] = element.attrs
 | 
					                    tag_dict["attrs"] = element.attrs
 | 
				
			||||||
                if element.contents:
 | 
					                if element.contents:
 | 
				
			||||||
                    children = []
 | 
					                    children = []
 | 
				
			||||||
                    for child in element.contents:
 | 
					                    for child in element.contents:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user