View Single Post
Old 07-01-2020, 05:43 PM   #132
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,744
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
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.
DiapDealer is offline   Reply With Quote