Markdown extension for editing marks and comments
Project description
markdown-editing
Editing markup and comments within Markdown.
This is a +{new} addition
This -{this} word is removed
I say, ~{out with the old}{*in* with the new}
Here !{just a comment} is a line with a comment
You can also ?{add comments to some text}(Like *this*!{And comment within comments}!{You can thread them that way} (2020-04-21))
All -{new}(Redundant (Makyo)) edit marks can have comments with attributions and dates +{like this}(See? (Makyo 2020-04-22)) (for single comments, just put the attribution in there !{like this}(Makyo))
Bottom text
Leads to:
<p>This is a <ins class="addition">new</ins> addition</p>
<p>This <del class="deletion">this</del> word is removed</p>
<p>I say, <span class="substitution"><del>out with the old</del><ins><em>in</em> with the new</ins></span></p>
<p>Here <q class="comment">just a comment</q> is a line with a comment</p>
<p>You can also <mark class="selected">add comments to some text<q class="comment">Like <em>this</em><q class="comment">And comment within comments</q><q class="comment">You can thread them that way</q><span class="attribution">2020-04-21</span></q></mark></p>
<p>All <del class="deletion">new<q class="comment">Redundant<span class="attribution">Makyo</span></q></del> edit marks can have comments with attributions and dates <ins class="addition">like this<q class="comment">See?<span class="attribution">Makyo</span><span class="date">2020-04-22</span></q></ins> (for single comments, just put the attribution in there <q class="comment">like this<span class="attribution">Makyo</span></q>)</p>
<p>Bottom text</p>
Which, with this stylesheet:
/* Editing extension */
del.deletion, .substitution del {
text-decoration: line-through;
background-color: #fbb;
color: #555;
}
ins.addition, .substitution ins {
text-decoration: none;
background-color: #d4fcbc;
}
q.comment {
display: block;
float: right;
width: 33%;
border: 1px solid #ccc;
margin-left: 0.5rem;
padding: 0.5rem;
clear: both;
}
q.comment q.comment {
float: none;
width: auto;
}
q.comment .attribution, q.comment .date {
font-size: 10pt;
display: inline-block;
float: right;
clear: both;
}
q.comment::before, q.comment::after {
content: "";
display: table;
clear: both;
}
p {
clear: both;
}
Looks like this:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markdown_editing-0.1.4.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for markdown_editing-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4db08e57796a660b187c803edb9ac1f6e449f64e66cde0b0d701fbd5b0e4d549 |
|
MD5 | 56b1e12da526a0fcd345dc1a3e4f6ba3 |
|
BLAKE2b-256 | a1f1d287496f6a2b7fbdd692fa22cc0e75a159f5129523478199a7a68d50aa0f |