Skip to content

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

@blueth007

Description

@blueth007

不能获取标题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
如果还有其他格式,请作者更新下,/抱拳。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions