为知笔记吧 关注:8,701贴子:65,481
  • 3回复贴,共1

markdown 不能预览

只看楼主收藏回复

之前一直用的4.3.4版,markdown文件能够正常点击预览,今天升级到最新版,点击markdown文件会刷新好几次,其中有一次显示正常,最后变成不正常,下拉滚动条也没有,用键盘方向键也不能滚动。点击编辑,然后再保存才能显示正常。尝试了几次其它版本,2017-11-08 版本也是同样问题,换回4.3.4(2016-05-18)就没有问题


回复
1楼2019-04-11 17:45
    我也是一样.


    回复
    2楼2019-04-25 09:28
      该楼层疑似违规已被系统折叠 查看此楼


      回复
      3楼2019-04-25 09:37
        上面的代码没完, 再下面的代码


        .markdown-body table tr th :first-child, .markdown-body table tr td :first-child {
        margin-top: 0;
        }


        .markdown-body table tr th :last-child, .markdown-body table tr td :last-child {
        margin-bottom: 0;
        }


        .markdown-body img {
        max-width: 100%;
        }


        .markdown-body .footnote {
        vertical-align: top;
        position: relative;
        top: -0.5em;
        font-size: 9pt;
        font-size: .75rem
        }


        .markdown-body span.frame {
        display: block;
        overflow: hidden;
        }


        .markdown-body span.frame > span {
        border: 1px solid #dddddd;
        display: block;
        float: left;
        overflow: hidden;
        margin: 13px 0 0;
        padding: 7px;
        width: auto;
        }


        .markdown-body span.frame span img {
        display: block;
        float: left;
        }


        .markdown-body span.frame span span {
        clear: both;
        color: #333333;
        display: block;
        padding: 5px 0 0;
        }


        .markdown-body span.align-center {
        display: block;
        overflow: hidden;
        clear: both;
        }


        .markdown-body span.align-center > span {
        display: block;
        overflow: hidden;
        margin: 13px auto 0;
        text-align: center;
        }


        .markdown-body span.align-center span img {
        margin: 0 auto;
        text-align: center;
        }


        .markdown-body span.align-right {
        display: block;
        overflow: hidden;
        clear: both;
        }


        .markdown-body span.align-right > span {
        display: block;
        overflow: hidden;
        margin: 13px 0 0;
        text-align: right;
        }


        .markdown-body span.align-right span img {
        margin: 0;
        text-align: right;
        }


        .markdown-body span.float-left {
        display: block;
        margin-right: 13px;
        overflow: hidden;
        float: left;
        }


        .markdown-body span.float-left span {
        margin: 13px 0 0;
        }


        .markdown-body span.float-right {
        display: block;
        margin-left: 13px;
        overflow: hidden;
        float: right;
        }


        .markdown-body span.float-right > span {
        display: block;
        overflow: hidden;
        margin: 13px auto 0;
        text-align: right;
        }


        .markdown-body code, .markdown-body tt {
        margin: 0 2px;
        padding: 2px 4px;
        white-space: pre-wrap;
        color: #c7254e;
        background-color: #f9f2f4;
        border-radius: 4px;
        }


        .markdown-body pre code {
        margin: 0;
        padding: 0;
        word-wrap: break-word;
        max-width: 100%;
        border: none;
        background: transparent;
        color: #666;
        }


        .markdown-body pre {
        background-color: #f8f8f8;
        border: 1px solid #cccccc;
        /*font-size: 10pt;*/
        /*font-size: 0.83rem;*/
        /*line-height: 14pt;*/
        /*line-height: 1.17rem;*/
        overflow: auto;
        padding: 6px 10px;
        border-radius: 3px;
        }


        .markdown-body .CodeMirror pre {
        background-color: transparent;
        border: 0px;
        font-size: inherit;
        /*line-height: inherit;*/
        overflow: initial;
        padding: 0 4px;
        border-radius: initial;
        margin: 0;
        }


        .markdown-body pre code, .markdown-body pre tt {
        background-color: transparent;
        border: none;
        }


        @media screen {
        .markdown-body pre, .markdown-body code {
        word-wrap: break-word;
        }
        }


        @media print {
        .markdown-body table, .markdown-body pre {
        page-break-inside: avoid;
        }


        pre {
        word-wrap: break-word;
        }
        }


        /*wiz code highlight*/
        .markdown-body pre, .markdown-body code {
        font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
        }


        .markdown-body .pln {
        color: #48484C;
        }


        .markdown-body .str {
        color: #DD1144;
        }


        .markdown-body .kwd {
        color: #1E347B;
        }


        .markdown-body .com {
        color: #93A1A1;
        }


        .markdown-body .typ {
        color: teal;
        }


        .markdown-body .lit {
        color: #195F91;
        }


        .markdown-body .pun {
        color: #93A1A1;
        }


        .markdown-body .opn {
        color: #93A1A1;
        }


        .markdown-body .clo {
        color: #93A1A1;
        }


        .markdown-body .tag {
        color: #008;
        }


        .markdown-body .atn {
        color: teal;
        }


        .markdown-body .atv {
        color: #DD1144;
        }


        .markdown-body .dec {
        color: teal;
        }


        .markdown-body .var {
        color: teal;
        }


        .markdown-body .fun {
        color: #DC322F;
        }


        /* Put a border around prettyprinted code snippets. */
        /*.markdown-body pre.prettyprint {*/
        /*background-color: #F7F7F9;*/
        /*padding: 0;*/
        /*border: 1px solid #E1E1E8;*/
        /*}*/


        /*.markdown-body pre.prettyprint.linenums {*/
        /*overflow: auto;*/
        /*-webkit-overflow-scrolling: touch;*/
        /*}*/


        /*!* Specify class=linenums on a pre to get line numbering *!*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums {*/
        /*box-shadow: 40px 0 0 #FBFBFC inset, 41px 0 0 #ECECF0 inset;*/
        /*padding: 10px 10px 10px 40px !important;*/
        /*color: #1E347B;*/
        /*margin-top: 0;*/
        /*margin-bottom: 0;*/
        /*}*/


        /*.markdown-body pre.prettyprint.linenums ol.linenums li {*/
        /*color: #BEBEC5;*/
        /*line-height: 18px;*/
        /*padding-left: 12px !important;*/
        /*}*/


        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L0,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L1,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L2,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L3,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L4,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L5,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L6,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L7,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L8,*/
        /*.markdown-body pre.prettyprint.linenums ol.linenums li.L9 {*/
        /*list-style-type: decimal !important;*/
        /*}*/




        @media screen and (max-width: 660px) {
        .markdown-body {
        padding: 20px 18px;
        }
        }




        @media only screen and (-webkit-max-device-width: 1024px),
        only screen and (-o-max-device-width: 1024px),
        only screen and (max-device-width: 1024px),
        only screen and (-webkit-min-device-pixel-ratio: 3),
        only screen and (-o-min-device-pixel-ratio: 3),
        only screen and (min-device-pixel-ratio: 3) {
        .markdown-body {
        padding: 12px 15px;
        }
        .markdown-body ul, .markdown-body ol {
        padding-left: 40px;
        }


        .markdown-body blockquote {
        border-left: 4px solid #c8d4e8;
        padding: 0 15px;
        color: #b3c2dd;
        }
        }


        /*评论页面修正*/
        .comment-list-item .markdown-body {
        padding: 0;
        margin: 1em .5em 1em 0;
        }
        /* 修正 CodeMirror & table */
        .markdown-body .wiz-code-container,
        .markdown-body .wiz-table-body {
        padding: 0;
        }


        回复
        4楼2019-04-25 10:31