ol-49">
+ margin: 1.5em 0;
+}
+.wxParse-h6 {
+ font-size: 0.75em;
+ margin: 1.67em 0;
+}
+
+.wxParse-h1 {
+ font-size: 18px;
+ font-weight: 400;
+ margin-bottom: 0.9em;
+}
+.wxParse-h2 {
+ font-size: 16px;
+ font-weight: 400;
+ margin-bottom: 0.34em;
+}
+.wxParse-h3 {
+ font-weight: 400;
+ font-size: 15px;
+ margin-bottom: 0.34em;
+}
+.wxParse-h4 {
+ font-weight: 400;
+ font-size: 14px;
+ margin-bottom: 0.24em;
+}
+.wxParse-h5 {
+ font-weight: 400;
+ font-size: 13px;
+ margin-bottom: 0.14em;
+}
+.wxParse-h6 {
+ font-weight: 400;
+ font-size: 12px;
+ margin-bottom: 0.04em;
+}
+
+.wxParse-h1,
+.wxParse-h2,
+.wxParse-h3,
+.wxParse-h4,
+.wxParse-h5,
+.wxParse-h6,
+.wxParse-b,
+.wxParse-strong {
+ font-weight: bolder;
+}
+
+.wxParse-i,
+.wxParse-cite,
+.wxParse-em,
+.wxParse-var,
+.wxParse-address {
+ font-style: italic;
+}
+.wxParse-pre,
+.wxParse-tt,
+.wxParse-code,
+.wxParse-kbd,
+.wxParse-samp {
+ font-family: monospace;
+}
+.wxParse-pre {
+ white-space: pre;
+}
+.wxParse-big {
+ font-size: 1.17em;
+}
+.wxParse-small,
+.wxParse-sub,
+.wxParse-sup {
+ font-size: 0.83em;
+}
+.wxParse-sub {
+ vertical-align: sub;
+}
+.wxParse-sup {
+ vertical-align: super;
+}
+.wxParse-s,
+.wxParse-strike,
+.wxParse-del {
+ text-decoration: line-through;
+}
+/*wxparse-自定义个性化的css样式*/
+/*增加video的css样式*/
+.wxParse-strong,
+.wxParse-s {
+ display: inline;
+}
+.wxParse-a {
+ color: #576b95;
+ text-decoration: underline;
+ word-break: break-all;
+ overflow: auto;
+}
+
+.wxParse-a-hover {
+ opacity: 0.8;
+}
+
+.wxParse-video {
+ text-align: center;
+ margin: 10px 0;
+}
+
+.wxParse-video-video {
+ width: 100%;
+}
+
+.wxParse-img {
+ /*background-color: #efefef;*/
+ overflow: hidden;
+}
+
+.wxParse-blockquote {
+ margin: 0;
+ padding: 10px 0 10px 5px;
+ font-family: Courier, Calibri, '宋体';
+ background: #f5f5f5;
+ border-left: 3px solid #dbdbdb;
+}
+
+.wxParse-code,
+.wxParse-wxxxcode-style {
+ display: inline;
+ background: #f5f5f5;
+}
+.wxParse-ul {
+ margin: 20rpx 10rpx;
+}
+
+.wxParse-li,
+.wxParse-li-inner {
+ display: flex;
+ align-items: baseline;
+}
+.wxParse-li-text {
+ align-items: center;
+}
+
+.wxParse-li-circle {
+ display: inline-flex;
+ width: 6px;
+ height: 6px;
+ border-radius: 3px;
+ background-color: #333;
+ margin-right: 5px;
+}
+
+.wxParse-li-square {
+ display: inline-flex;
+ width: 10rpx;
+ height: 10rpx;
+ background-color: #333;
+ margin-right: 5px;
+}
+.wxParse-li-ring {
+ display: inline-flex;
+ width: 10rpx;
+ height: 10rpx;
+ border: 2rpx solid #333;
+ border-radius: 50%;
+ background-color: #fff;
+ margin-right: 5px;
+}
+
+/*.wxParse-table{
+ width: 100%;
+ height: 400px;
+}
+.wxParse-thead,.wxParse-tfoot,.wxParse-tr{
+ display: flex;
+ flex-direction: row;
+}
+.wxParse-th,.wxParse-td{
+ display: flex;
+ width: 580px;
+ overflow: auto;
+}*/
+
+.wxParse-u {
+ text-decoration: underline;
+}
+.wxParse-hide {
+ display: none;
+}
+.WxEmojiView {
+ align-items: center;
+}
+.wxEmoji {
+ width: 16px;
+ height: 16px;
+}
+.wxParse-tr {
+ display: flex;
+ border-right: 1px solid #e0e0e0;
+ border-bottom: 1px solid #e0e0e0;
+ border-top: 1px solid #e0e0e0;
+}
+.wxParse-th,
+.wxParse-td {
+ flex: 1;
+ padding: 5px;
+ font-size: 28rpx;
+ border-left: 1px solid #e0e0e0;
+ word-break: break-all;
+}
+.wxParse-td:last {
+ border-top: 1px solid #e0e0e0;
+}
+.wxParse-th {
+ background: #f0f0f0;
+ border-top: 1px solid #e0e0e0;
+}
+.wxParse-del {
+ display: inline;
+}
+.wxParse-figure {
+ overflow: hidden;
+}
@@ -0,0 +1,10 @@ |
||
| 1 |
+var filter = function (text) {
|
|
| 2 |
+ if (text) {
|
|
| 3 |
+ var pattern = '\\\\n'; |
|
| 4 |
+ var target = '\n'; |
|
| 5 |
+ var reg = getRegExp(pattern, 'g'); |
|
| 6 |
+ return text.replace(reg, target); |
|
| 7 |
+ } |
|
| 8 |
+}; |
|
| 9 |
+ |
|
| 10 |
+module.exports.filter = filter; |