I want to convert java specification documentation to easily editable formats(markdown or asciidoc) and upload GitHub Gist and customize(adding my code experiences and notes.) I want to convert to
something like this
I use a tool called pandoc that allows us to convert from HTML to markdown.
What I have tried:
Technique 1
I tried to convert all table of components of java specification on index.html
pandoc -f html -t markdown -o test2.md https://docs.oracle.com/javase/specs/jls/se10/html/index.html
I got this:
test2.md (I did not upload here because the file of contents is too long)
Problem: This markdown file does not have contents of java specification documentation. I expected that I got markdown toc(table of components) and java specification documentation contents in markdown file like this`
Technique 2(better than tech 1)
2-)I downloaded all HTML files of TOC with HTTrack and try to convert all files separately.
pandoc -f html-native_divs-native_spans -i jls-1.html -t markdown -o test2.md
I got following markdown file which does not redirect table of components:
test3.md
How can I fix this and convert java specifiation properly?