我已经在这个问题上苦思冥想了几个小时,我相信答案可能非常简单,或者根本不存在。
我正在尝试将一个HTML文件转换为DOCX!
我正在尝试将一个HTML文件转换为DOCX!
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
</style>
</head>
<body>
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
</body>
</html>
我可以轻松转换它,但是我无法使样式保持。
pandoc -s myfile.html -o test64.docx
pandoc -s -c myfile.css myfile.html -o test64.docx
请救救我。