Here's a list of the notable changes in Scroll and Scrolldown.
This tiny release adds some ways to include more caveats and context around words and references.
This is a great idea.
aftertext
This is a great idea.
caveat great
I'm not actually sure if this is a great idea. But often I want to include a comment and link it
back to the text, but don't quite want to footnote it.
This report showed the treatment had a big impact.
aftertext
This report showed the treatment had a big impact.
https://example.com/report This report
note
The average growth in the treatment group was 14.2x higher than the control group.
Example demonstrating the above:
aftertext
Click here to go to the middle paragraph.
link #middleParagraph Click here
loremIpsum 20
aftertext
Here is the middle paragraph.
id middleParagraph
loremIpsum 20
pipeTable
name|nameLink
Wikipedia|https://wikipedia.org
name |
---|
Wikipedia |
By default the article's date will be used but you can also provide a custom date.
aftertext
A truck transporting llamas collided into a pajama factory late last night.
dateline 2/21/2020
February 21, 2020 β A truck transporting llamas collided into a pajama factory late last night.
To migrate and keep your existing datelines use the command scroll migrate
.
How much wood can a woodchuck chuck if a woodchuck could chuck wood?
aftertext
How much wood can a woodchuck chuck if a woodchuck could chuck wood?
link https://en.wikipedia.org/wiki/Groundhog woodchuck
matchAll
class standout wood
match 0 3
css
.standout {
background-color: yellow;
border: 1px dashed red;
padding: 5px;
}
You write some text. After your text, you add your markup instructions with selectors to select the text to markup, one command per line. For example, this paragraph is written in Aftertext and the source code looks like:
aftertext
You write some text. After your text, you add your markup instructions with selectors to select the text to markup, one command per line. For example, this paragraph is written in Aftertext and the source code looks like:
italics After your text
italics selectors
image screenshot.png
caption This is a caption
Question and answer structures are literally older than the Socratic Method. Such a common semantic pattern deserves it's own keywords.
The below regex may help.
Find ^title\d (.+\?)
ReplaceWith question $1
Find ^title\d (.+)
ReplaceWith section $1
what | why |
---|---|
PipeTable | Because it's awesome! |
To use an image node:
image foo.jpg
QuickParagraphs are now an error. When you want to drop in some HTML, do so with HTML node:
html
<b>anything goes here</b>
scroll check
commandFor single word links in paragraph nodes only (for now) you can now do:
paragraph
This is a linkπexample.com
Below is a regex for migrating existing *.scroll
files.
<a href="https://([^"]+)">([^ ]+)</a>
$2π$1
The πlink tag only supports single word links. Like everything with Scrolldown, you have a number of options if the conventional design doesn't work for you. Your options are:
foo πlink bar πlink
Now you can! Sometimes you just want to publish an independent page without including it
in the index. To do that, just add skipIndexPage
.