Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能获取标题1-6,标题,副标题等的cssStyle样式 #7

Open
blueth007 opened this issue Jun 12, 2023 · 0 comments
Open

不能获取标题1-6,标题,副标题等的cssStyle样式 #7

blueth007 opened this issue Jun 12, 2023 · 0 comments

Comments

@blueth007
Copy link

不能获取标题1-6,标题,副标题的cssStyle样式:
在源码: #8883行
Object.defineProperty(i.prototype, "renderParagraph", { enumerable: !1, configurable: !0, writable: !0, value: function(r) { 渲染创建p和h1标签 /* styleName: { 数字1-6:h1-6 ad:标题 [center,bold,16px ;margin: 12pt 0cm 3pt] ab:副标题[center,bold,16px,line-height:130%;margin: 12pt 0cm 3pt] } */ var e, n, a, t, o; if(/\d/.test(r.styleName)){ e, n, a, t, o =this.createElement('h'+r.styleName) }else if(/\w+/.test(r.styleName)) { e, n, a, t, o =this.createElement('p') if(r.styleName=='ad'){ r.cssStyle={ margin: '12pt 0cm 3pt', 'text-align': 'center', 'font-weight': 'bold' } } if(r.styleName =='ab'){ r.cssStyle={ 'margin': '12pt 0cm 3pt', 'text-align': 'center', 'font-weight': 'bold', 'line-height':'130%' } } }else{ e, n, a, t, o =this.createElement('p') } ...... }
其他格式保持不变;其他样式通过console.log()去发现。
图片要转为base64,在#9396: useBase64URL: !0 //!1
如果还有其他格式,请作者更新下,/抱拳。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant