Hi! I have a simple task for the beginning.
If this task will be completed as expected, then we will continue with developing this library even more.
So, a TASK:
There is a raw text with \n delimiters for the line breaks:
------------------------------------------------------------------------
# Step one
# Step two
some other lines here
and they do not interrupt numbering
if they go one by one
# Step three
# Step one again...
# Step two again, but it has more, than one space between hash char and first letter
# Step three and # this 'inline' hash is not a number
# This is not a step because started not from the beginning of a line
#This is not a step because no at least one space delimeter between hash char and first letter
------------------------------------------------------------------------
This text must be rendered with JS or jQuery into HTML to look like:
------------------------------------------------------------------------
1. Step one
2. Step two
some other lines here
and they do not interrupt numbering
if they go one by one
3. Step three
1. Step one again...
2. Step two again, but it has more, than one space between hash char and first letter
3. Step three and # this 'inline' hash is not a number
# This is not a step because started not from the beginning of a line
#This is not a step because no at least one space delimiter between hash char and first letter
------------------------------------------------------------------------
Resulting JS or jQuery code function accepts some text, where it finds hashes (#) and renders them accordingly to a task and returns ready-to-display HTML code.
NOTE: You will need [login to view URL] assistance to encode and decode with $('<div/>').text(value).html();
Hello Sir,
I understood your requirement of parsing text using #value and line numbering. I am well experienced with Javascript and JQuery and will be able to do your project.
Clarifications:
- How will you know when to start back from 1?
- Where will the text come from? Text file? or a input box in the page??
I understood the line numbering you want to do related to # and special rules for it. I can deliver you the code in one day. I will do unlimited code changes, till you like it and as per standards, an you release your payments only per milestones.
Hope to hear from you soon
Diganta Das