You have to create a style map that maps your style names to the elements you want them to be when importing. Then when you import, you select the correct style map used to map things correctly.
Mammoth is incapable of guessing which styles should be imported as paragraphs and which should be headers. You have to explicitly tell it (via the map file). Otherwise, everything will be a standard paragraph.
The json file just stores the plugin preferences. You make things work by creating your OWN style map and css files. Similar to the ones in the samples folder, but tailored to your own preferences. Then you select those two files (along with your docx file) when running the plugin.
Last edited by DiapDealer; 07-01-2020 at 05:50 PM.
|