Click here to Skip to main content
15,887,344 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 7-May-18 9:35am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900