Skip to content

Bug Fix: Only Bold Unbolded Keywords#736

Open
FieryRMS wants to merge 4 commits into
rendercv:mainfrom
FieryRMS:patch/only-bold-unbolded-keywords
Open

Bug Fix: Only Bold Unbolded Keywords#736
FieryRMS wants to merge 4 commits into
rendercv:mainfrom
FieryRMS:patch/only-bold-unbolded-keywords

Conversation

@FieryRMS
Copy link
Copy Markdown

Consider the following case,

zero **one** two

if the keyword is one it will attempt to rebold it, resulting in

zero ****one**** two

which the underlying markdown package does not render as expected.

<p>zero <strong><em>*one</em></strong>* two</p>

Another case,

**zero one two**

would result in,

**zero **one** two**

markdown produces the following html

<p><strong>zero </strong>one<strong> two</strong></p>

which unbolds the keyword instead of bolding it.

This pr attempts to bypass these limitation by excluding already bolded ranges from the replacement.

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.

1 participant