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

Add support for div and span attributes #207

Merged
merged 32 commits into from
Dec 22, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
21f9d76
Add dummy fenced_divs and bracketed_spans syntax extensions
Witiko Nov 4, 2022
e2d1a2f
Merge branch 'main' into feature/divs-and-spans
Witiko Nov 7, 2022
c0ff634
Make documentation of built-in syntax extensions more unified
Witiko Nov 9, 2022
f44d032
Implement `bracketed_spans` syntax extension
Witiko Nov 9, 2022
cd1c2c4
Implement `fenced_divs` syntax extension
Witiko Nov 9, 2022
f6dd2e8
Make documentation of built-in syntax extensions more unified
Witiko Nov 9, 2022
80da903
Merge branch 'main' into feature/divs-and-spans
Witiko Nov 9, 2022
514aee1
Make fenced div and bracketed span writers produce attribute context …
Witiko Nov 23, 2022
eb0a851
Enable the nesting of fenced divs
Witiko Dec 7, 2022
7d8c45a
Merge branch 'main'
Witiko Dec 7, 2022
7a424d2
Interpret `::: foo` as `::: { .foo }` like Pandoc does
Witiko Dec 7, 2022
cdc7f23
Cherry-pick jgm/lunamark@44f5cf6
Witiko Dec 7, 2022
67b35bb
Add fenced div attribute context renderers and renderer prototypes
Witiko Dec 14, 2022
dbaea51
Add bracketed span attribute context renderers and renderer prototypes
Witiko Dec 14, 2022
82665de
Add `blankBeforeDivFence` Lua option
Witiko Dec 14, 2022
84e9983
Add `fencedDivs` Lua option
Witiko Dec 14, 2022
f500f21
Add `bracketedSpans` Lua option
Witiko Dec 14, 2022
85b2019
Load `fenced_div` syntax extension in `M.new()`
Witiko Dec 14, 2022
79064ff
Load `bracketed_spans` syntax extension in `M.new()`
Witiko Dec 14, 2022
2928733
Add `bracketedSpans` Lua option (cont.)
Witiko Dec 15, 2022
2ba6871
Cherry-pick jgm/lunamark#59
Witiko Dec 16, 2022
075a440
Update `CHANGES.md`
Witiko Dec 16, 2022
1b3ac44
Add `testfiles/lunamark-markdown/fenced-divs.test`
Witiko Dec 20, 2022
0e12983
Fix a typo in renderer names
Witiko Dec 21, 2022
6b998a0
Fix `EndlineExceptions` clash between `fenced_code` and `fenced_div` …
Witiko Dec 22, 2022
3c27da6
Merge branch 'main' into feature/divs-and-spans
Witiko Dec 22, 2022
79d7b61
Add `testfiles/lunamark-markdown/no-fenced-divs.test`
Witiko Dec 22, 2022
f595bf8
Add `testfiles/lunamark-markdown/{,no-}blank-before-div-fence.test`
Witiko Dec 22, 2022
b62c27f
Add `testfiles/lunamark-markdown/{,no-}bracketed-spans.test`
Witiko Dec 22, 2022
a7b438b
Define fenced div and bracketed span renderers in witiko/markdown/tes…
Witiko Dec 22, 2022
8680fe8
Do not produce `\markdownRendererFencedDiv` command
Witiko Dec 22, 2022
25efb7b
Do not produce `\markdownRendererBracketedSpan` command
Witiko Dec 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Load fenced_div syntax extension in M.new()
  • Loading branch information
Witiko committed Dec 14, 2022
commit 85b2019f04e0529ae892a48c9cd2194a8099e19d
6 changes: 6 additions & 0 deletions markdown.dtx
Original file line number Diff line number Diff line change
@@ -24809,6 +24809,12 @@ function M.new(options)
table.insert(extensions, fenced_code_extension)
end

if options.fencedDivs then
local fenced_div_extension = M.extensions.fenced_divs(
options.blankBeforeDivFence)
table.insert(extensions, fenced_div_extension)
end

if options.headerAttributes then
local header_attributes_extension = M.extensions.header_attributes()
table.insert(extensions, header_attributes_extension)