terrylinooo / githuber-md

Markdown editor plugin for WordPress.
GNU General Public License v3.0
616 stars 89 forks source link

Replace non-standard id names on the footnotes and returns #287

Closed ArFurik closed 1 year ago

ArFurik commented 2 years ago

The id names generated by githuber-md contain ':' which is non standard and very annoying to address it in css or scss.

It's easy to replace with '-', so I did it in the file joined.

Example with a scss rule and the original 'fnref1:1' name:


    $id-note: "[id=\"fn:1\"]";
    #{$id-note} {
        p {
            margin-top: 7px;
            margin-bottom: 0;
        }
    }

New 'fnref1-1':


    #fnref1-1 p {
        margin-top: 7px;
        margin-bottom: 0;
    }

ParsedownExtra.corrected.php.txt

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.