Code to use unicode to bold and italic styles to text

Open
#191 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
web-dev

Research direction

Start by reviewing the Yaytext example and the proposed HTML input and Unicode output in this issue; no repository files, tests, or entry points are named. Done would mean converting the requested bold and italic markup into Unicode-styled text suitable for a Twitter or Facebook post.

Written by the indexing model from the issue text.

Description

Have you ever seen Yaytext?

It's an interactive tool that adds style to text using Unicode. Try it out. I'm glad to see it's possible to do this.

But I want to do it in code. Say I have a string with HTML markup for bold and italic. I want to pass that string to a routine and have it return a string with the bold and italic done with Unicode mapping. So it can be in a FB or Twitter post, for example. I want to bake this into thread.center, if possible.

I did a quick search for a JS code that does this. But it must be around. If not, it should be.

A little pseudocode:

var s = "This is <b>bold</b> text, and this is &i>italic</i> text.";
var unicodeversion = convertHtmlStyleToUnicode (s);
twitter.tweet (unicodeversion);

Dominant language
HTML
Stars
134
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/Scripting-News

All issues in scripting/Scripting-News

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.