Markdown: continue text in list after a nested list - list

I need to insert a sub-list in a list and then continue the text in the item:
1. Start of the item text
- First item of sublist;
- Second item of sublist;
More text of the first item.
2. Second Item
3. Third item
The text after the nested list is not aligned correctly after rendering (should be aligned with "Start", is aligned with "1."). Any suggestion?

The text should be left-aligned with the text after the number, then the rendered text will be aligned to it.
Here is your example:
1. Start of the item text
- First item of sublist;
- Second item of sublist;
More text of the sublist of the first item.
The pending text of "More text of the sublist of the first item."
More text of the first item.
The pending text of "More text of the first item."
2. Second Item
3. Third item
The first line text have two chars: 1 . with one space before the text conent Start of...
Then the text you wants to aligned should also have 3 spaces before the text content of More text of...
Moreover, having <=N spaces (N presents the length of the prefix text of the list context, in this example, N=3) before the text content will make the content aligns with this list text
e.g.
Having 1 ~ 3 spaces will make the text aligns with the 1st line text, having 4 ~ 6 spaces will make the text aligns with the 2nd line text,

Related

Regex to get text between 2 large spaces

I want to try and regex this text to only get "Second Baptist School" as the output by using Customer: as the set beginning for it to recognize. How would I get it so that it recognizes the beginning and gets all of the text in between the large sections of blanks?
Customer: Second Baptist School Date of Sale: 9/26/2022
Right now I'm using Customer:\s*([^ -.]+) but it only gets "Second" as the output.
You can look for 2 or more white spaces with:
Customer:\s*(.*?)\s{2,}
this should align with your above examples. The {2,} says 2 or more.
https://regex101.com/r/1HapOO/1

Ordered list with ordinal numbers in R Markdown?

What is the best way to create a list like this in R Markdown. Instead of just saying "1" or "2" it says "1st" and "2nd" and the "the" in each row is aligned with the one below?
1st. the first item
2nd. the second item
3rd. the third item

Google Sheets: Find match, check for text in adjacent cell to matched cell

Example data here.
I'd like to use conditional formatting to highlight cells where, if the cell's number is found in another sheet, and there is text in an adjacent cell, it is highlighted.
So, given Sheet2:
When a B-column cell in Sheet1 matches an A-column cell in Sheet2, it checks if there is text in the adjacent E-column cell (in Sheet2), and highlights if there is text.
try:
=REGEXMATCH(B2&"", "^"&TEXTJOIN("$|^", 1,
FILTER(INDIRECT("Sheet2!A2:A"), INDIRECT("Sheet2!E2:E")<>""))&"$")

Select n-th line with first line condition

I have subtitles file which was auto-generated for one of the Youtube videos.
Here, there are 4 speeches. Every speech has number, time, first text line and second text line.
I would like to delete every first text of line in every time spans. I need it because currently when new text comes I see the old one and the new one. In other words, old text is moving up and new comes from the bottom. I would like to see only the new one.
1
00:00:02,880 --> 00:00:06,550
[empty]<--to be removed
[Music]
2
00:00:06,550 --> 00:00:06,560
[Music]<--to be removed
[empty]
3
00:00:06,560 --> 00:00:09,290
[Music]<--to be removed
my name is Maria and I'm a technical
4
00:00:09,290 --> 00:00:09,300
my name is Maria and I'm a technical<--to be removed
[empty]
What have I tried? I am only able to select: number line, time line and first text line. Somehow (?=regexp) doesn't work with my query. Here is my query:
(^\d+$\n.+$\n)
^\d+$ - starts and ends with digit elements
\n.+$ - select new line, select all elements till the end of the line
\n - select one more line but don't select elements
You may use the following regex:
^(\d+\r?\n.*?-->.*)\r?\n.+
Replace with $1. See the regex demo.
Details
^ - start of a line
(\d+\r?\n.*?-->.*) - Capturing group 1:
\d+ - 1+ digits
\r?\n - a CRLF or LF line break
.*?-->.* - a line that has --> (this is to make matching safer, your .+ can do, too, if you are sure there are no subtitle text lines that are only made up of digits)
\r?\n - CRLF or LF
.+ - 1 or more chars other than line break chars.

XSL Row append in empty space

I have a table with 3 columns and 2 rows.
In the 1st row: That first column drops down to the entire page, and the 2nd and 3rd columns only drop an inch.
In the 2nd Row: There are only two columns that use the middle and right columns. This currently gets added to the 2nd page.
Right now that 2nd row is appended below where the 1st column in the 1st row end. Is it possible in xsl 1.1 to have that 2nd row append below where the 2nd and 3rd columns are in the 1st column [aka added in the white space on the first page]?
Quickly refreshing my memory on xsl-fo, i quite quickly found this:
<fo:table-cell number-rows-spanned="2">
When applied to your first cel in your first ro in your first column, it should then span two rows, meaning that the data on your second row appear next to it.