add citation links to notes
This commit is contained in:
parent
a0c9c7fa1f
commit
0524eddb0b
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ from loguru import logger
|
||||||
from streamlit_monaco import st_monaco # type: ignore
|
from streamlit_monaco import st_monaco # type: ignore
|
||||||
|
|
||||||
from open_notebook.domain.notebook import Note
|
from open_notebook.domain.notebook import Note
|
||||||
|
from pages.stream_app.utils import convert_source_references
|
||||||
|
|
||||||
|
|
||||||
def note_panel(note_id, notebook_id=None):
|
def note_panel(note_id, notebook_id=None):
|
||||||
|
|
@ -12,7 +13,7 @@ def note_panel(note_id, notebook_id=None):
|
||||||
t_preview, t_edit = st.tabs(["Preview", "Edit"])
|
t_preview, t_edit = st.tabs(["Preview", "Edit"])
|
||||||
with t_preview:
|
with t_preview:
|
||||||
st.subheader(note.title)
|
st.subheader(note.title)
|
||||||
st.markdown(note.content)
|
st.markdown(convert_source_references(note.content))
|
||||||
with t_edit:
|
with t_edit:
|
||||||
note.title = st.text_input("Title", value=note.title)
|
note.title = st.text_input("Title", value=note.title)
|
||||||
note.content = st_monaco(
|
note.content = st_monaco(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue