gpt2markdown icon indicating copy to clipboard operation
gpt2markdown copied to clipboard

Exporting code results in HTML escape characters

Open tarunlalwani opened this issue 2 years ago • 0 comments

image


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

tarunlalwani avatar Mar 11 '23 11:03 tarunlalwani