Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<ins> extension #115

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

<ins> extension #115

wants to merge 2 commits into from

Conversation

aleray
Copy link

@aleray aleray commented May 27, 2012

Hi, I have just pushed my changes to sundown to turn "++inserted text++" into "inserted text". Maybe you are interested in it.

Thanks,

Alex

It can be used by enabling the MKDEXT_INS option like this
(example/sundown.c):

    markdown = sd_markdown_new(MKDEXT_INS, 16, &callbacks, &options)

then, after compilation the following command line:

    echo "++ins++" | ./sundown

results in:

    <p><ins>ins</ins></p>
@mildsunrise
Copy link

👍

one thing: <del> is the little sister of <ins>; they normally go together.
Could you add support for turning --this-- into <del>this</del>?

@aleray
Copy link
Author

aleray commented Sep 6, 2012

@jmendeth If I remember correctly you can already do it using ~~this~~.

Cheers

@mildsunrise
Copy link

oops. yeah you're right. Tecnically,
~~this~~ is strikethrough: it should give <strike>this</strike>.
--this-- is deletion: it should give <del>this</del>.

Casually, both tags are styled the same...
Bah, forget me. Good extension anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants