You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text (str | ILGSDocument): Input to be converted into Markdown. If an Isaacus Legal Graph Schema (ILGS) Document is supplied, this function will convert the Document's text into Markdown without needing to enrich it first with an Isaacus enrichment model.
24
26
25
-
link_cross_references (bool, optional): Whether to link cross-references in the input text to their targets, for example, linking "as mentioned in Section 2.1" to the relevant section.
27
+
link_xrefs (bool, optional): Whether to link cross-references in the input text to their targets, for example, linking "as mentioned in Section 2.1" to the relevant section.
26
28
27
29
strike_junk (bool, optional): Whether to strike out junk text.
28
30
29
31
block_quotes (bool, optional): Whether to transform non-inline quotes into Markdown block quotes.
30
32
33
+
escape_lists (bool, optional): Whether to escape list-like lines (lines starting with "-", "*", "+", or numbered lists). This leads to nicer rendering at the cost of cleaner Markdown source code.
34
+
31
35
italicize_refs (bool, optional): Whether to italicize the names of any referenced documents, for example, "as mentioned in *Smith v. Jones*".
32
36
37
+
italicize_terms (bool, optional): Whether to italicize the names of any defined terms.
38
+
33
39
enrichment_model (str, optional): The name of the Isaacus enrichment model to use for converting the input text into Markdown. Defaults to the latest and most advanced Isaacus enrichment model, currently `kanon-2-enricher`.
34
40
35
41
isaacus_client (isaacus.AsyncIsaacus, optional): An Isaacus API client to use for enriching the input text with an Isaacus enrichment model if the input is not already an Isaacus Legal Graph Schema (ILGS) Document. If `None`, a new instance will be created instead where necessary.
block_quotes (bool, optional): Whether to transform non-inline quotes into Markdown block quotes.
201
222
223
+
escape_lists (bool, optional): Whether to escape list-like lines (lines starting with "-", "*", "+", or numbered lists). This leads to nicer rendering at the cost of cleaner Markdown source code.
224
+
202
225
italicize_refs (bool, optional): Whether to italicize the names of any referenced documents, for example, "as mentioned in *Smith v. Jones*".
203
226
227
+
italicize_terms (bool, optional): Whether to italicize any terms defined in the document.
228
+
204
229
enrichment_model (str, optional): The name of the Isaacus enrichment model to use for converting the input text into Markdown. Defaults to the latest and most advanced Isaacus enrichment model, currently `kanon-2-enricher`.
205
230
206
231
isaacus_client (isaacus.Isaacus, optional): An Isaacus API client to use for enriching the input text with an Isaacus enrichment model if the input is not already an Isaacus Legal Graph Schema (ILGS) Document. If `None`, a new instance will be created instead where necessary.
@@ -222,7 +247,7 @@ def text2markdown(
222
247
# Idea: Gather all annotations to queue, build a hierarchy of events ordered by index,
223
248
# then perform the necessary plain text -> markdown transformations
Copy file name to clipboardExpand all lines: tests/test-out/test2.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<h1style="text-align: center;">2025 VCE Business Management external assessment report</h1>
1
+
# 2025 VCE Business Management external assessment report
2
2
3
3
This report provides sample answers, or an indication of what answers may have included. Unless otherwise stated, these are not intended to be exemplary or complete responses.
4
4
@@ -30,7 +30,7 @@ Average
30
30
31
31
This question required students to outline one clear difference between the terms ‘retirement’ and ‘redundancy’. There are several differences that were considered acceptable, including:
32
32
33
-
 • Retirement is voluntary and initiated by the employee, while redundancy is normally involuntary and is initiated by the business.
33
+
 • *Retirement* is voluntary and initiated by the employee, while *redundancy* is normally involuntary and is initiated by the business.
34
34
35
35
 • Retirement will often mean that the employee leaves the workforce entirely, while redundancy may mean that the employee seeks employment elsewhere.
Copy file name to clipboardExpand all lines: tests/test-out/test3.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
The three main types of rock, classified by how they form, are igneous, sedimentary, and metamorphic. These types are defined by their formation processes: cooling magma (igneous), accumulation of sediments (sedimentary), or heat and pressure transformation (metamorphic), as discussed in this article from AMNH.
2
2
3
-
## Igneous Rock
3
+
## *Igneous Rock*
4
4
5
5
Formed from the cooling and solidification of molten rock (magma or lava).
Copy file name to clipboardExpand all lines: tests/test-out/test4.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
<h1style="text-align: center;">THE OMNIBUS EXAMPLE INSTRUMENT</h1>
1
+
# THE OMNIBUS EXAMPLE INSTRUMENT
2
2
3
-
<pstyle="text-align: center;">Subtitle: Cross-Domain Act, Agreement, and Notice</p>
3
+
## Subtitle: Cross-Domain Act, Agreement, and Notice
4
4
5
5
~~PDF | HTML | DOCX | TXT | PRINT~~
6
6
@@ -38,7 +38,7 @@
38
38
39
39
## <aid="seg-19"></a>Part I — Front Matter
40
40
41
-
Document Title: “The Omnibus Example Instrument” (the “Instrument”)
41
+
Document Title: “The Omnibus Example Instrument” (the “*Instrument*”)
42
42
43
43
Document Subtitle: “Cross-Domain Act, Agreement, and Notice”
44
44
@@ -58,17 +58,17 @@ This document was created on 01 January 2024, signed on 31 January 2024, takes e
58
58
59
59
For the purposes of this Instrument:
60
60
61
-
“Agreement” means this Instrument as binding between the Parties.
61
+
“*Agreement*” means this Instrument as binding between the Parties.
62
62
63
-
“Confidential Information” means any information marked “confidential” or that a reasonable person would treat as confidential.
63
+
“*Confidential Information*” means any information marked “confidential” or that a reasonable person would treat as confidential.
64
64
65
-
“Effective Date” means 01 February 2024.
65
+
“*Effective Date*” means 01 February 2024.
66
66
67
-
“Services” means the managed data processing and hosting services described in [Schedule 1](#seg-67).
67
+
“*Services*” means the managed data processing and hosting services described in [Schedule 1](#seg-67).
68
68
69
-
“Force Majeure Event” means an event beyond a party’s reasonable control (including acts of God, war, strikes, or Internet backbone failure).
69
+
“*Force Majeure Event*” means an event beyond a party’s reasonable control (including acts of God, war, strikes, or Internet backbone failure).
70
70
71
-
law means any statute, regulation, or decision of a competent authority (including, without limitation, the *Privacy Act 1988 (Cth)* and *Regulation (EU) 2016/679 (GDPR)).*
71
+
*law* means any statute, regulation, or decision of a competent authority (including, without limitation, the *Privacy Act 1988 (Cth)* and *Regulation (EU) 2016/679 (GDPR)).*
72
72
73
73
References to Sections, Subsections, Paragraphs, Clauses, Items, Schedules, Annexes, Appendices, Exhibits, and Figures are to those of this Instrument unless otherwise stated.
74
74
@@ -172,9 +172,9 @@ Description: A block diagram showing user → app → API → database.
172
172
173
173
The Parties:
174
174
175
-
The Licensor (corporate): Acme Data Pty Ltd (ACN 123 456 789), registered in Australia on 15 August 2010; principal place of business: Level 10, 200 Collins Street, Melbourne VIC 3000, Australia; website https://acmedata.example
175
+
The *Licensor* (corporate): Acme Data Pty Ltd (ACN 123 456 789), registered in Australia on 15 August 2010; principal place of business: Level 10, 200 Collins Street, Melbourne VIC 3000, Australia; website https://acmedata.example
176
176
177
-
The Licensee (corporate): Beta Health, Inc., incorporated in Delaware on 22 May 2012; principal place of business: 500 Market St, San Francisco, CA 94105, USA; website https://betahealth.example
177
+
The *Licensee* (corporate): Beta Health, Inc., incorporated in Delaware on 22 May 2012; principal place of business: 500 Market St, San Francisco, CA 94105, USA; website https://betahealth.example
178
178
179
179
The Government (politic, empowered authority): Department of Government Services (Victoria).
0 commit comments