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

Underline Text in List #27

Closed
Michael-Grover opened this issue Aug 26, 2019 · 15 comments
Closed

Underline Text in List #27

Michael-Grover opened this issue Aug 26, 2019 · 15 comments

Comments

@Michael-Grover
Copy link

The underline style can not be applied to text in an ordered or unordered list. The bold, italic, and code styles work for text in a list.

Example of a real contract where parts of an ordered list are underlined, which currently isn't possible in our editor:
image

@jolanglinais jolanglinais changed the title Text in list can't be underlined Underline Text in List Aug 26, 2019
@dselman
Copy link
Contributor

dselman commented Sep 22, 2019

Markdown doesn't natively support underline, so we need to rethink how we serialise this. I suggest we remove the underline option for now, and then experiment with using html tags for underline.

@nitinsultania
Copy link

in paragraph tag we can use this
style="text-decoration: underline;"

@jolanglinais
Copy link
Member

This issue is linked with accordproject/markdown-editor#98

@jolanglinais
Copy link
Member

in paragraph tag we can use this
style="text-decoration: underline;"

I believe this won't exactly work due to how we are handling transforming markdown to ciceromark to commonmark to slate (diagram).

@jeromesimeon
Copy link
Member

in paragraph tag we can use this
style="text-decoration: underline;"

I believe this won't exactly work due to how we are handling transforming markdown to ciceromark to commonmark to slate (diagram).

We need to figure out how (whether?) we should represent underline in markdown first (See @dselman 's comment).

Is this a must have feature?

@K-Kumar-01
Copy link
Contributor

@irmerk
Can we use <ins> HTML tag for this purpose. I used it on template-dingus and it worked there
Screenshot from 2021-03-03 00-44-11
Though I am not sure about this but as we will wrap the text in HTML I don't think it would cause any issue as it is supported by markdown itself.

@jolanglinais
Copy link
Member

I'm unsure about this, because our markdown-transform will likely lose this formatting when roundtripping through markdown - which does not support it. Thoughts @dselman @jeromesimeon ?

@jeromesimeon
Copy link
Member

We shouldn't depend too much on HTML tags since we convert contracts to other formats: e.g., pdf, docx. It would be better to use a proper underline extension as @dselman suggested in a previous comment.

For instance: https://www.npmjs.com/package/markdown-it-plugin-underline

Not sure underline is our most pressing requirement though.

@K-Kumar-01
Copy link
Contributor

@jeromesimeon @irmerk
Since the priority is not pressing I would have a go at other issues then.

@Hanaffi
Copy link

Hanaffi commented Mar 15, 2021

@irmerk Can you assign this to me please?

@jeromesimeon
Copy link
Member

@irmerk Can you assign this to me please?

As you can see from the thread. We're not really pursuing this feature at the moment.

@Hanaffi
Copy link

Hanaffi commented Mar 15, 2021

@jeromesimeon Oh no.
Can you assign some issue to me? (For ex. #73)
Every time I find an issue, Its assigned to someone or has low priority.

@jolanglinais
Copy link
Member

If there aren't any open Issues that are open and not low priority, then there aren't any. Something as challenging as #73 won't be assigned to someone without having a pretty thorough investigation into what we need to do and how.

@Michael-Grover
Copy link
Author

This issue is out of date. The tech working group is currently looking into adding underlined text to the markdown editor.

@jolanglinais
Copy link
Member

Related to (blocked by if we want to pursue this) accordproject/markdown-transform#368

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

No branches or pull requests

7 participants