hosna  
                
                  
                    27 Junio, 2018 11:12
                   
                  1 
               
             
            
              What is the library behind discourse difference preview between different versions? Its really nice and interesting and I want to use it inside my application, if possible.
             
            
              
            
           
          
            
              
                bts  
              
                  
                    27 Junio, 2018 15:11
                   
                  2 
               
             
            
              I think you’re in luck…looks like someone extracted this recently into a standalone Ruby gem!
  
  
    I’ve recently found myself with a need for Discourse’s excellent post diffing functionality in a project. 
 [45%20PM]  
Normally for a project like this I’d take a look at Discourse’s code and re-implement it to my taste, but this time it struck me as an great library to extract (given that it’s self-contained and uses a computer-sciency algorithm with a fancy name and whatnot) 
I’ve extracted it to a gem here: 
https://www.github.com/gdpelican/discourse-diff  
Which is a straight port of the exis…
   
 
             
            
              6 Me gusta