Skip to content

Option to exclude hashtags or mentions #4

@inliquid

Description

@inliquid

Hi!

this library is very helpful in creating short descriptions from posts. However there are few corner-cases, one of them is that we have some special meaning sort of entities such as #hash_tags and @m_e_n_t_i_o_n_s. They are pre-processed into valid MD before rendered as MD. However when we use Strip to remove markdown from raw content, it might become broken, for example:

in:

#one #two #three #four #five_six_seven_eight #nine_ten_eleven #twelve

out:

#one #two #three #four #fivesixseveneight #nineten_eleven #twelve

Would be great to be able to exclude them, for instance to provide a list of regexps that will "mark" some blocks as "excluded".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions