File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed 
tests/Elastic.Markdown.Tests/Inline Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,31 @@ public void EmitsCrossLink()
189189	} 
190190} 
191191
192+ public  class  CrossLinkEmptyTextNoTitleTest ( ITestOutputHelper  output )  :  LinkTestBase ( output , 
193+ 	""" 
194+ 
195+ 	Go to [](kibana://get-started/index.md) 
196+ 	""" 
197+ ) 
198+ { 
199+ 	[ Fact ] 
200+ 	public  void  GeneratesHtml ( )  => 
201+ 		// language=html - when no title is available, link text should remain empty 
202+ 		Html . Should ( ) . Contain ( 
203+ 			"""<p>Go to <a href="https://docs-v3-preview.elastic.dev/elastic/kibana/tree/main/get-started" hx-select-oob="#main-container" preload="mousedown"></a></p>""" 
204+ 		) ; 
205+ 
206+ 	[ Fact ] 
207+ 	public  void  HasNoErrors ( )  =>  Collector . Diagnostics . Should ( ) . HaveCount ( 0 ) ; 
208+ 
209+ 	[ Fact ] 
210+ 	public  void  EmitsCrossLink ( ) 
211+ 	{ 
212+ 		Collector . CrossLinks . Should ( ) . HaveCount ( 1 ) ; 
213+ 		Collector . CrossLinks . Should ( ) . Contain ( "kibana://get-started/index.md" ) ; 
214+ 	} 
215+ } 
216+ 
192217public  class  LinkWithUnresolvedInterpolationError ( ITestOutputHelper  output )  :  LinkTestBase ( output , 
193218	""" 
194219	[global search field]({{this-variable-does-not-exist}}/introduction.html#kibana-navigation-search) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments