gpt2markdown
gpt2markdown copied to clipboard
Exporting code results in HTML escape characters
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import java.util.concurrent.TimeUnit;
public class GenericRepositoryImpl<T> extends SimpleJpaRepository<T, Long> implements GenericRepository<T> {
private final EntityManager entityManager;
public GenericRepositoryImpl(JpaEntityInformation<T, ?> entityInformation, EntityManager entityManager) {
super(entityInformation, entityManager);
this.entityManager = entityManager;
}
@Override
public Page<T> search(String searchQuery, Pageable pageable) {
return search(searchQuery, null, pageable);
}
As you may have noticed when we export the Markdown, the code has html escape characters. Also there is always an additional blank link at the start of the code