ricobuilds / gpt2markdown

A browser extension that exports your ChatGPT conversations to Markdown format.
https://chrome.google.com/webstore/detail/gpt2markdown/mlfimpibamecbdnofjnbkjomeieclnjl
MIT License
73 stars 20 forks source link

Exporting code results in HTML escape characters #10

Open tarunlalwani opened 1 year ago

tarunlalwani commented 1 year ago
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