mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
Change output format to xhtml.
This commit is contained in:
parent
9c0b2a8a74
commit
5993548c1d
@ -17,11 +17,11 @@
|
||||
"""
|
||||
<!DOCTYPE html>
|
||||
<!-- Created by pdf2htmlEX (https://github.com/coolwanglu/pdf2htmlex) -->
|
||||
<html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="generator" content="pdf2htmlEX">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="generator" content="pdf2htmlEX"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
"""
|
||||
|
||||
#############
|
||||
|
@ -273,7 +273,7 @@ Viewer.prototype = {
|
||||
var nodes = this.outline.childNodes;
|
||||
for (var i = 0, l = nodes.length; i < l; ++i) {
|
||||
var cur_node = nodes[i];
|
||||
if (cur_node.nodeName === 'UL') {
|
||||
if (cur_node.nodeName.toLowerCase() === 'ul') {
|
||||
empty = false;
|
||||
break;
|
||||
}
|
||||
|
@ -35,9 +35,9 @@ const std::map<std::string, EmbedStringEntry> EMBED_STRING_MAP({
|
||||
"\"></script>" }},
|
||||
{".png", {&Param::embed_image,
|
||||
"<img alt=\"\" src=\"data:image/png;base64,",
|
||||
"\">", true,
|
||||
"\"/>", true,
|
||||
"<img alt=\"\" src=\"",
|
||||
"\">" }}
|
||||
"\"/>" }}
|
||||
});
|
||||
|
||||
const std::map<std::string, std::string> FORMAT_MIME_TYPE_MAP({
|
||||
|
Loading…
Reference in New Issue
Block a user